File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
services/surfaceflinger/CompositionEngine Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ bool Display::getSkipColorTransform() const {
308308 DisplayCapability::SKIP_CLIENT_COLOR_TRANSFORM);
309309 }
310310
311- return hwc. hasCapability (Capability::SKIP_CLIENT_COLOR_TRANSFORM );
311+ return Output::getSkipColorTransform ( );
312312}
313313
314314bool Display::allLayersRequireClientComposition () const {
Original file line number Diff line number Diff line change @@ -1705,6 +1705,9 @@ void Output::resetCompositionStrategy() {
17051705}
17061706
17071707bool Output::getSkipColorTransform () const {
1708+ // TODO: This needs to be true because the color transform is a global across all displays, but
1709+ // use-cases like screen recording don't want the color transform. Please make color transforms
1710+ // actually a per-display concept :(
17081711 return true ;
17091712}
17101713
Original file line number Diff line number Diff line change @@ -689,8 +689,6 @@ using DisplayGetSkipColorTransformTest = DisplayWithLayersTestCommon;
689689using aidl::android::hardware::graphics::composer3::DisplayCapability;
690690
691691TEST_F (DisplayGetSkipColorTransformTest, checksCapabilityIfGpuDisplay) {
692- EXPECT_CALL (mHwComposer , hasCapability (Capability::SKIP_CLIENT_COLOR_TRANSFORM))
693- .WillOnce (Return (true ));
694692 auto args = getDisplayCreationArgsForGpuVirtualDisplay ();
695693 auto gpuDisplay{impl::createDisplay (mCompositionEngine , args)};
696694 EXPECT_TRUE (gpuDisplay->getSkipColorTransform ());
You can’t perform that action at this time.
0 commit comments