Home
last modified time | relevance | path

Searched refs:layer_state_t (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/native/libs/gui/include/gui/
DLayerState.h141 struct layer_state_t { struct
219 layer_state_t();
221 void merge(const layer_state_t& other);
226 uint64_t diff(const layer_state_t& other) const;
230 static constexpr uint64_t HIERARCHY_CHANGES = layer_state_t::eLayerChanged | argument
231 layer_state_t::eRelativeLayerChanged | layer_state_t::eReparent |
232 layer_state_t::eLayerStackChanged;
235 static constexpr uint64_t GEOMETRY_CHANGES = layer_state_t::eBufferCropChanged | argument
236 layer_state_t::eBufferTransformChanged | layer_state_t::eCornerRadiusChanged |
237 layer_state_t::eCropChanged | layer_state_t::eDestinationFrameChanged |
[all …]
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshot.cpp257 contentDirty = requested.what & layer_state_t::CONTENT_DIRTY; in merge()
263 if (forceUpdate || requested.what & layer_state_t::eTransparentRegionChanged) { in merge()
266 if (forceUpdate || requested.what & layer_state_t::eFlagsChanged) { in merge()
268 (requested.flags & layer_state_t::eLayerOpaque) == layer_state_t::eLayerOpaque; in merge()
270 if (forceUpdate || requested.what & layer_state_t::eBufferTransformChanged) { in merge()
273 if (forceUpdate || requested.what & layer_state_t::eTransformToDisplayInverseChanged) { in merge()
276 if (forceUpdate || requested.what & layer_state_t::eDataspaceChanged) { in merge()
279 if (forceUpdate || requested.what & layer_state_t::eExtendedRangeBrightnessChanged) { in merge()
283 if (forceUpdate || requested.what & layer_state_t::eCachingHintChanged) { in merge()
286 if (forceUpdate || requested.what & layer_state_t::eHdrMetadataChanged) { in merge()
[all …]
DRequestedLayerState.cpp74 if (args.flags & ISurfaceComposerClient::eHidden) flags |= layer_state_t::eLayerHidden; in RequestedLayerState()
75 if (args.flags & ISurfaceComposerClient::eOpaque) flags |= layer_state_t::eLayerOpaque; in RequestedLayerState()
76 if (args.flags & ISurfaceComposerClient::eSecure) flags |= layer_state_t::eLayerSecure; in RequestedLayerState()
78 flags |= layer_state_t::eLayerSkipScreenshot; in RequestedLayerState()
140 const layer_state_t& clientState = resolvedComposerState.state; in merge()
142 uint64_t clientChanges = what | layer_state_t::diff(clientState); in merge()
143 layer_state_t::merge(clientState); in merge()
147 if (clientState.what & layer_state_t::eFlagsChanged) { in merge()
148 if ((oldFlags ^ flags) & layer_state_t::eLayerHidden) { in merge()
152 if ((oldFlags ^ flags) & layer_state_t::eIgnoreDestinationFrame) { in merge()
[all …]
DLayerSnapshotBuilder.cpp436 mRootSnapshot.clientChanges |= layer_state_t::eReparent; in updateSnapshots()
719 snapshot.clientChanges |= (parentSnapshot.clientChanges & layer_state_t::AFFECTS_CHILDREN); in updateSnapshot()
725 snapshot.clientChanges & layer_state_t::eReparent || in updateSnapshot()
729 if (forceUpdate || snapshot.clientChanges & layer_state_t::eLayerStackChanged) { in updateSnapshot()
754 if (forceUpdate || snapshot.clientChanges & layer_state_t::eAlphaChanged) { in updateSnapshot()
760 if (forceUpdate || snapshot.clientChanges & layer_state_t::eFlagsChanged) { in updateSnapshot()
762 parentSnapshot.isSecure || (requested.flags & layer_state_t::eLayerSecure); in updateSnapshot()
764 (requested.flags & layer_state_t::eLayerSkipScreenshot); in updateSnapshot()
767 if (forceUpdate || snapshot.clientChanges & layer_state_t::eTrustedOverlayChanged) { in updateSnapshot()
771 if (forceUpdate || snapshot.clientChanges & layer_state_t::eStretchChanged) { in updateSnapshot()
[all …]
DLayerLifecycleManager.cpp219 if (layer->what & layer_state_t::eBackgroundColorChanged) { in applyTransactions()
249 bgColorLayer->what |= layer_state_t::eColorChanged | in applyTransactions()
250 layer_state_t::eDataspaceChanged | layer_state_t::eAlphaChanged; in applyTransactions()
264 if (layer->what & layer_state_t::eLayerStackChanged && layer->isRoot()) { in applyTransactions()
DRequestedLayerState.h35 struct RequestedLayerState : layer_state_t {
/frameworks/native/services/surfaceflinger/Tracing/
DTransactionProtoParser.cpp101 if (layer.what & layer_state_t::ePositionChanged) { in toProto()
105 if (layer.what & layer_state_t::eLayerChanged) { in toProto()
109 if (layer.what & layer_state_t::eLayerStackChanged) { in toProto()
112 if (layer.what & layer_state_t::eFlagsChanged) { in toProto()
116 if (layer.what & layer_state_t::eMatrixChanged) { in toProto()
123 if (layer.what & layer_state_t::eCornerRadiusChanged) { in toProto()
126 if (layer.what & layer_state_t::eBackgroundBlurRadiusChanged) { in toProto()
130 if (layer.what & layer_state_t::eAlphaChanged) { in toProto()
134 if (layer.what & layer_state_t::eColorChanged) { in toProto()
140 if (layer.what & layer_state_t::eTransparentRegionChanged) { in toProto()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionApplicationTest.cpp344 if (what & layer_state_t::eCropChanged) { in createComposerState()
347 if (what & layer_state_t::eFlagsChanged) { in createComposerState()
348 state.state.flags = layer_state_t::eEnableBackpressure; in createComposerState()
349 state.state.mask = layer_state_t::eEnableBackpressure; in createComposerState()
422 layer_state_t::eBufferChanged)}); in TEST_F()
437 layer_state_t::eBufferChanged), in TEST_F()
453 layer_state_t::eCropChanged | in TEST_F()
454 layer_state_t:: in TEST_F()
471 layer_state_t::eCropChanged | in TEST_F()
472 layer_state_t:: in TEST_F()
[all …]
DLayerHierarchyTest.h120 transactions.back().states.front().state.what = layer_state_t::eReparent; in reparentLayerTransaction()
135 transactions.back().states.front().state.what = layer_state_t::eRelativeLayerChanged; in relativeLayerTransaction()
148 transactions.back().states.front().state.what = layer_state_t::eLayerChanged; in removeRelativeZ()
165 transactions.back().states.front().state.what = layer_state_t::eBackgroundColorChanged; in updateBackgroundColor()
195 transactions.back().states.front().state.what = layer_state_t::eLayerChanged; in setZTransaction()
210 transactions.back().states.front().state.what = layer_state_t::eCropChanged; in setCrop()
221 transactions.back().states.front().state.what = layer_state_t::eFlagsChanged; in setFlags()
233 transactions.back().states.front().state.what = layer_state_t::eAlphaChanged; in setAlpha()
240 setFlags(id, layer_state_t::eLayerHidden, layer_state_t::eLayerHidden); in hideLayer()
243 void showLayer(uint32_t id) { setFlags(id, layer_state_t::eLayerHidden, 0); } in showLayer()
[all …]
DLayerTest.cpp53 layer_state_t::matrix22_t matrix{0, 0, 0, 0}; in TEST_P()
65 layer_state_t::matrix22_t matrix{INF, 0, 0, INF}; in TEST_P()
77 layer_state_t::matrix22_t matrix{QUIET_NAN, 0, 0, QUIET_NAN}; in TEST_P()
DLayerSnapshotTest.cpp253 EXPECT_EQ(getSnapshot(11)->clientChanges, layer_state_t::eColorChanged); in TEST_F()
263 EXPECT_EQ(getSnapshot(1)->clientChanges, layer_state_t::eColorChanged); in TEST_F()
270 transactions.back().states.front().state.what = layer_state_t::eMetadataChanged; in TEST_F()
278 EXPECT_EQ(getSnapshot(1)->clientChanges, layer_state_t::eMetadataChanged); in TEST_F()
298 transactions.back().states.front().state.what = layer_state_t::eFrameRateChanged; in TEST_F()
370 setFlags(12, layer_state_t::eLayerSkipScreenshot, layer_state_t::eLayerSkipScreenshot); in TEST_F()
426 setFlags(12, layer_state_t::eLayerSkipScreenshot, layer_state_t::eLayerSkipScreenshot); in TEST_F()
DTransactionTracingTest.cpp147 layerState.state.what = layer_state_t::eLayerChanged; in SetUp()
152 childState.state.what = layer_state_t::eLayerChanged; in SetUp()
171 layerState.state.what = layer_state_t::eLayerChanged | layer_state_t::ePositionChanged; in SetUp()
281 layerState.state.what = layer_state_t::eLayerChanged; in SetUp()
286 mirrorState.state.what = layer_state_t::eLayerChanged; in SetUp()
DLayerHierarchyTest.cpp676 setFlags(12, layer_state_t::eLayerSkipScreenshot, layer_state_t::eLayerSkipScreenshot); in TEST_F()
691 setFlags(12, layer_state_t::eLayerSkipScreenshot, layer_state_t::eLayerSkipScreenshot); in TEST_F()
705 setFlags(12, layer_state_t::eLayerSkipScreenshot, layer_state_t::eLayerSkipScreenshot); in TEST_F()
723 setFlags(12, layer_state_t::eLayerSkipScreenshot, layer_state_t::eLayerSkipScreenshot); in TEST_F()
DLayerLifecycleManagerTest.cpp119 transactions.back().states.front().state.what = layer_state_t::eBackgroundBlurRadiusChanged; in TEST_F()
312 transactions.back().states.front().state.what = layer_state_t::eBackgroundColorChanged; in TEST_F()
341 transactions.back().states.front().state.what = layer_state_t::eBackgroundColorChanged; in TEST_F()
346 transactions.back().states.front().state.what = layer_state_t::eBackgroundColorChanged; in TEST_F()
375 transactions.back().states.front().state.what = layer_state_t::eBackgroundColorChanged; in TEST_F()
DTransactionProtoParserTest.cpp40 layer_state_t layer; in TEST()
42 layer.what &= ~static_cast<uint64_t>(layer_state_t::eBufferChanged); in TEST()
/frameworks/native/libs/gui/
DSurfaceComposerClient.cpp726 (permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER) == 0) { in sanitize()
921 void SurfaceComposerClient::Transaction::releaseBufferIfOverwriting(const layer_state_t& state) { in releaseBufferIfOverwriting()
922 if (!(state.what & layer_state_t::eBufferChanged) || !state.bufferData->hasBuffer()) { in releaseBufferIfOverwriting()
962 if (composerState.state.what & layer_state_t::eBufferChanged) { in merge()
1067 layer_state_t* s = &(mComposerStates[handle].state); in cacheBuffers()
1068 if (!(s->what & layer_state_t::eBufferChanged)) { in cacheBuffers()
1178 layer_state_t* s = getLayerState(surfaceControl); in apply()
1184 s->what |= layer_state_t::eHasListenerCallbacksChanged; in apply()
1256 layer_state_t* s = t.getLayerState(sc); in sendSurfaceFlushJankDataTransaction()
1261 s->what |= layer_state_t::eFlushJankData; in sendSurfaceFlushJankDataTransaction()
[all …]
DLayerStatePermissions.cpp30 layer_state_t::Permission::ACCESS_SURFACE_FLINGER |
31 layer_state_t::Permission::ROTATE_SURFACE_FLINGER},
33 layer_state_t::Permission::ROTATE_SURFACE_FLINGER},
35 layer_state_t::Permission::INTERNAL_SYSTEM_WINDOW},
DLayerState.cpp57 layer_state_t::layer_state_t() in layer_state_t() function in android::layer_state_t
98 status_t layer_state_t::write(Parcel& output) const in write()
199 status_t layer_state_t::read(const Parcel& input) in read()
421 if (!(permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
427 if (!(permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
433 if (!(permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER)) { in sanitize()
440 void layer_state_t::sanitize(int32_t permissions) { in sanitize()
479 if (what & layer_state_t::eInputInfoChanged) { in sanitize()
485 if (what & layer_state_t::eTrustedOverlayChanged) { in sanitize()
491 if (what & layer_state_t::eDropInputModeChanged) { in sanitize()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DMirrorLayer_test.cpp46 t.setFlags(mParentLayer, layer_state_t::eLayerOpaque, layer_state_t::eLayerOpaque); in SetUp()
47 t.setFlags(mChildLayer, layer_state_t::eLayerOpaque, layer_state_t::eLayerOpaque); in SetUp()
65 .setFlags(grandchild, layer_state_t::eLayerOpaque, layer_state_t::eLayerOpaque) in TEST_F()
304 t.setFlags(grandchild, layer_state_t::eLayerOpaque, layer_state_t::eLayerOpaque); in TEST_F()
DLayerTypeTransaction_test.cpp167 .setFlags(layer, layer_state_t::eLayerSecure, layer_state_t::eLayerSecure) in TEST_P()
180 Transaction().setFlags(layer, 0, layer_state_t::eLayerSecure).apply(true); in TEST_P()
DLayerTrustedPresentationListener_test.cpp138 .setFlags(otherLayer, 0, layer_state_t::eLayerOpaque) in TEST_F()
246 .setFlags(otherLayer, layer_state_t::eLayerSkipScreenshot, in TEST_F()
247 layer_state_t::eLayerSkipScreenshot) in TEST_F()
DEffectLayer_test.cpp40 t.setFlags(mParentLayer, layer_state_t::eLayerOpaque, layer_state_t::eLayerOpaque); in SetUp()
/frameworks/native/services/surfaceflinger/
DLayer.cpp157 if (args.flags & ISurfaceComposerClient::eHidden) layerFlags |= layer_state_t::eLayerHidden; in Layer()
158 if (args.flags & ISurfaceComposerClient::eOpaque) layerFlags |= layer_state_t::eLayerOpaque; in Layer()
159 if (args.flags & ISurfaceComposerClient::eSecure) layerFlags |= layer_state_t::eLayerSecure; in Layer()
161 layerFlags |= layer_state_t::eLayerSkipScreenshot; in Layer()
690 } else if ((mDrawingState.flags & layer_state_t::eLayerIsDisplayDecoration) != 0) { in preparePerFrameBufferCompositionState()
693 } else if ((mDrawingState.flags & layer_state_t::eLayerIsRefreshRateIndicator) != 0) { in preparePerFrameBufferCompositionState()
760 if (s.flags & layer_state_t::eLayerSecure) { in isSecure()
1520 return s.flags & layer_state_t::eLayerHidden; in isHiddenByPolicy()
2794 if (s.flags & layer_state_t::eLayerSkipScreenshot) { in isInternalDisplayOverlay()
2987 if ((mDrawingState.flags & layer_state_t::eIgnoreDestinationFrame) || in updateGeometry()
[all …]
DSurfaceFlinger.cpp4304 flushState.transaction->traverseStatesWithBuffersWhileTrue([&](const layer_state_t& s, in transactionReadyBufferCheck()
4457 bool SurfaceFlinger::shouldLatchUnsignaled(const sp<Layer>& layer, const layer_state_t& state, in shouldLatchUnsignaled()
4520 (permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER) == 0) { in setTransactionState()
4527 (permissions & layer_state_t::Permission::ACCESS_SURFACE_FLINGER) || in setTransactionState()
4566 if (resolvedState.state.what & layer_state_t::eReparent) { in setTransactionState()
4570 if (resolvedState.state.what & layer_state_t::eRelativeLayerChanged) { in setTransactionState()
4574 if (resolvedState.state.what & layer_state_t::eInputInfoChanged) { in setTransactionState()
4801 layer_state_t& s = composerState.state; in setClientStateLocked()
4844 if (what & layer_state_t::eProducerDisconnect) { in setClientStateLocked()
4848 if (what & layer_state_t::ePositionChanged) { in setClientStateLocked()
[all …]
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp536 layer_id flag = hfc.hidden_flag() ? layer_state_t::eLayerHidden : 0; in setHiddenFlag()
538 t.setFlags(mLayers[id], flag, layer_state_t::eLayerHidden); in setHiddenFlag()
544 layer_id flag = ofc.opaque_flag() ? layer_state_t::eLayerOpaque : 0; in setOpaqueFlag()
546 t.setFlags(mLayers[id], flag, layer_state_t::eLayerOpaque); in setOpaqueFlag()
552 layer_id flag = sfc.secure_flag() ? layer_state_t::eLayerSecure : 0; in setSecureFlag()
554 t.setFlags(mLayers[id], flag, layer_state_t::eLayerSecure); in setSecureFlag()

12