/frameworks/native/vulkan/libvulkan/ |
D | layers_extensions.h | 25 struct Layer; 29 explicit LayerRef(const Layer* layer); 37 operator const Layer*() const { return layer_; } 43 const Layer* layer_; 49 const Layer& GetLayer(uint32_t index); 50 const Layer* FindLayer(const char* name); 52 const VkLayerProperties& GetLayerProperties(const Layer& layer); 53 bool IsLayerGlobal(const Layer& layer); 54 const VkExtensionProperties* GetLayerInstanceExtensions(const Layer& layer, 56 const VkExtensionProperties* GetLayerDeviceExtensions(const Layer& layer, [all …]
|
D | layers_extensions.cpp | 53 struct Layer { struct 96 std::vector<Layer>& instance_layers) const; 98 void* GetGPA(const Layer& layer, const std::string_view gpa_name) const; 175 std::vector<Layer>& instance_layers) const { in EnumerateLayers() 245 Layer layer; in EnumerateLayers() 315 void* LayerLibrary::GetGPA(const Layer& layer, const std::string_view gpa_name) const { in GetGPA() 325 std::vector<Layer> g_instance_layers; 453 void* GetLayerGetProcAddr(const Layer& layer, in GetLayerGetProcAddr() 475 const Layer& GetLayer(uint32_t index) { in GetLayer() 479 const Layer* FindLayer(const char* name) { in FindLayer() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 87 std::atomic<int32_t> Layer::sSequence{1}; 89 Layer::Layer(const LayerCreationArgs& args) in Layer() function in android::Layer 164 void Layer::onFirstRef() { in onFirstRef() 168 Layer::~Layer() { in ~Layer() 208 void Layer::onLayerDisplayed(const sp<Fence>& /*releaseFence*/) {} in onLayerDisplayed() 210 void Layer::removeRelativeZ(const std::vector<Layer*>& layersInTree) { in removeRelativeZ() 215 sp<Layer> strongRelative = mDrawingState.zOrderRelativeOf.promote(); in removeRelativeZ() 228 void Layer::removeFromCurrentState() { in removeFromCurrentState() 237 sp<Layer> Layer::getRootLayer() { in getRootLayer() 238 sp<Layer> parent = getParent(); in getRootLayer() [all …]
|
D | Layer.h | 103 class Layer : public virtual RefBase, compositionengine::LayerFE { 179 wp<Layer> zOrderRelativeOf; 183 SortedVector<wp<Layer>> zOrderRelatives; 190 wp<Layer> touchableRegionCrop; 221 sp<Layer> bgColorLayer; 291 sp<Layer> mLayer; 300 LayerCleaner(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer) in LayerCleaner() 314 Handle(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer) in Handle() 317 wp<Layer> owner; 320 explicit Layer(const LayerCreationArgs& args); [all …]
|
D | SurfaceInterceptor.h | 38 class Layer; variable 58 virtual void enable(const SortedVector<sp<Layer>>& layers, 75 virtual void saveSurfaceCreation(const sp<const Layer>& layer) = 0; 76 virtual void saveSurfaceDeletion(const sp<const Layer>& layer) = 0; 99 void enable(const SortedVector<sp<Layer>>& layers, 114 void saveSurfaceCreation(const sp<const Layer>& layer) override; 115 void saveSurfaceDeletion(const sp<const Layer>& layer) override; 131 void saveExistingSurfacesLocked(const SortedVector<sp<Layer>>& layers); 132 void addInitialSurfaceStateLocked(Increment* increment, const sp<const Layer>& layer); 136 const sp<const Layer> getLayer(const wp<const IBinder>& weakHandle) const; [all …]
|
D | LayerRejecter.h | 26 LayerRejecter(Layer::State& front, Layer::State& current, bool& recomputeVisibleRegions, 33 Layer::State& mFront; 34 Layer::State& mCurrent;
|
D | Client.cpp | 49 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer) in attachLayer() 55 void Client::detachLayer(const Layer* layer) in detachLayer() 67 sp<Layer> Client::getLayerUser(const sp<IBinder>& handle) const in getLayerUser() 70 sp<Layer> lbc; in getLayerUser() 71 wp<Layer> layer(mLayers.valueFor(handle)); in getLayerUser() 116 sp<Layer> layer = getLayerUser(handle); in clearLayerFrameStats() 125 sp<Layer> layer = getLayerUser(handle); in getLayerFrameStats()
|
D | Client.h | 31 class Layer; variable 43 void attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer); 44 void detachLayer(const Layer* layer); 46 sp<Layer> getLayerUser(const sp<IBinder>& handle) const; 74 DefaultKeyedVector< wp<IBinder>, wp<Layer> > mLayers;
|
/frameworks/native/services/surfaceflinger/tests/unittests/mock/DisplayHardware/ |
D | MockComposer.h | 41 using android::hardware::graphics::composer::V2_1::Layer; 61 MOCK_METHOD2(createLayer, Error(Display, Layer* outLayer)); 62 MOCK_METHOD2(destroyLayer, Error(Display, Layer)); 65 Error(Display, std::vector<Layer>*, std::vector<IComposerClient::Composition>*)); 72 Error(Display, uint32_t*, std::vector<Layer>*, std::vector<uint32_t>*)); 79 MOCK_METHOD3(getReleaseFences, Error(Display, std::vector<Layer>*, std::vector<int>*)); 93 MOCK_METHOD4(setCursorPosition, Error(Display, Layer, int32_t, int32_t)); 94 MOCK_METHOD5(setLayerBuffer, Error(Display, Layer, uint32_t, const sp<GraphicBuffer>&, int)); 96 Error(Display, Layer, const std::vector<IComposerClient::Rect>&)); 97 MOCK_METHOD3(setLayerBlendMode, Error(Display, Layer, IComposerClient::BlendMode)); [all …]
|
D | MockHWC2.cpp | 28 Layer::Layer() = default; 29 Layer::~Layer() = default;
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | MockHWC2.cpp | 22 Layer::~Layer() = default; 28 Layer::Layer() = default; 29 Layer::~Layer() = default;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | ComposerHal.h | 68 using V2_1::Layer; 104 virtual Error createLayer(Display display, Layer* outLayer) = 0; 105 virtual Error destroyLayer(Display display, Layer layer) = 0; 109 Display display, std::vector<Layer>* outLayers, 118 std::vector<Layer>* outLayers, 126 virtual Error getReleaseFences(Display display, std::vector<Layer>* outLayers, 157 virtual Error setCursorPosition(Display display, Layer layer, int32_t x, int32_t y) = 0; 159 virtual Error setLayerBuffer(Display display, Layer layer, uint32_t slot, 161 virtual Error setLayerSurfaceDamage(Display display, Layer layer, 163 virtual Error setLayerBlendMode(Display display, Layer layer, [all …]
|
D | HWC2.cpp | 125 base::expected<std::shared_ptr<HWC2::Layer>, hal::Error> Display::createLayer() { in createLayer() 133 auto layer = std::make_shared<impl::Layer>(mComposer, mCapabilities, *this, layerId); in createLayer() 148 Error Display::getChangedCompositionTypes(std::unordered_map<HWC2::Layer*, Composition>* outTypes) { in getChangedCompositionTypes() argument 149 std::vector<Hwc2::Layer> layerIds; in getChangedCompositionTypes() 241 std::unordered_map<HWC2::Layer*, LayerRequest>* outLayerRequests) { in getRequests() argument 243 std::vector<Hwc2::Layer> layerIds; in getRequests() 331 Error Display::getReleaseFences(std::unordered_map<HWC2::Layer*, sp<Fence>>* outFences) const { in getReleaseFences() argument 332 std::vector<Hwc2::Layer> layerIds; in getReleaseFences() 341 std::unordered_map<HWC2::Layer*, sp<Fence>> releaseFences; in getReleaseFences() 557 std::shared_ptr<HWC2::Layer> Display::getLayerById(HWLayerId id) const { in getLayerById() [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/ |
D | CachedSetTest.cpp | 82 std::unique_ptr<CachedSet::Layer> cachedSetLayer; 117 std::make_unique<CachedSet::Layer>(testLayer->layerState.get(), kStartTime); in SetUp() 133 void expectEqual(const CachedSet& cachedSet, const CachedSet::Layer& layer) { in expectEqual() 145 CachedSet::Layer layer(&layerState, lastUpdate); in expectEqual() 163 CachedSet::Layer& layer = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() 177 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() 178 CachedSet::Layer& layer2 = *mTestLayers[1]->cachedSetLayer.get(); in TEST_F() 198 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() 199 CachedSet::Layer& layer2 = *mTestLayers[1]->cachedSetLayer.get(); in TEST_F() 200 CachedSet::Layer& layer3 = *mTestLayers[2]->cachedSetLayer.get(); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
D | LayerProtoParser.h | 80 class Layer { 84 std::vector<Layer*> children; 85 std::vector<Layer*> relatives; 105 Layer* parent = 0; 106 Layer* zOrderRelativeOf = 0; 126 std::vector<Layer> allLayers; 129 std::vector<Layer*> topLevelLayers; 136 static std::vector<Layer> generateLayerList(const LayersProto& layersProto); 137 static LayerProtoParser::Layer generateLayer(const LayerProto& layerProto); 145 std::unordered_map<int32_t, Layer*>& layerMap); [all …]
|
/frameworks/native/services/vr/hardware_composer/impl/ |
D | vr_hwc.h | 44 using android::hardware::graphics::composer::V2_1::Layer; 73 Layer id; 129 explicit HwcLayer(Layer new_id) { info.id = new_id; } in HwcLayer() 147 bool DestroyLayer(Layer id); 148 HwcLayer* GetLayer(Layer id); 155 std::vector<Layer>* layer_ids, 160 std::vector<Layer> UpdateLastFrameAndGetLastFrameLayers(); 189 std::vector<Layer> last_frame_layers_ids_; 213 Error setLayerInfo(Display display, Layer layer, uint32_t type, 218 Display display, Layer layer, [all …]
|
/frameworks/native/services/surfaceflinger/tests/fakehwc/ |
D | FakeComposerClient.h | 72 V2_1::Error createLayer(Display display, Layer* outLayer) override; 73 V2_1::Error destroyLayer(Display display, Layer layer) override; 101 V2_1::Error validateDisplay(Display display, std::vector<Layer>* outChangedLayers, 104 std::vector<Layer>* outRequestedLayers, 108 std::vector<Layer>* outLayers, 111 V2_1::Error setLayerCursorPosition(Display display, Layer layer, int32_t x, int32_t y) override; 112 V2_1::Error setLayerBuffer(Display display, Layer layer, buffer_handle_t buffer, 114 V2_1::Error setLayerSurfaceDamage(Display display, Layer layer, 116 V2_1::Error setLayerBlendMode(Display display, Layer layer, int32_t mode) override; 117 V2_1::Error setLayerColor(Display display, Layer layer, IComposerClient::Color color) override; [all …]
|
D | FakeComposerClient.cpp | 70 FrameRect(Layer layer_, const RenderState& state, uint32_t z_) in FrameRect() 73 const Layer layer; 220 V2_1::Error FakeComposerClient::createLayer(Display /*display*/, Layer* outLayer) { in createLayer() 228 V2_1::Error FakeComposerClient::destroyLayer(Display /*display*/, Layer layer) { in destroyLayer() 365 Display /*display*/, std::vector<Layer>* /*outChangedLayers*/, in validateDisplay() argument 367 uint32_t* /*outDisplayRequestMask*/, std::vector<Layer>* /*outRequestedLayers*/, in validateDisplay() 385 std::vector<Layer>* /*outLayers*/, in presentDisplay() argument 410 V2_1::Error FakeComposerClient::setLayerCursorPosition(Display /*display*/, Layer /*layer*/, in setLayerCursorPosition() argument 416 V2_1::Error FakeComposerClient::setLayerBuffer(Display /*display*/, Layer layer, in setLayerBuffer() 429 V2_1::Error FakeComposerClient::setLayerSurfaceDamage(Display /*display*/, Layer /*layer*/, in setLayerSurfaceDamage() argument [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/ |
D | OutputLayer.h | 42 void setHwcLayer(std::shared_ptr<HWC2::Layer>) override; 50 HWC2::Layer* getHwcLayer() const override; 71 void writeOutputDependentGeometryStateToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition, 73 void writeOutputIndependentGeometryStateToHWC(HWC2::Layer*, const LayerFECompositionState&, 75 void writeOutputDependentPerFrameStateToHWC(HWC2::Layer*); 76 void writeOutputIndependentPerFrameStateToHWC(HWC2::Layer*, const LayerFECompositionState&, 78 void writeSolidColorStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 79 void writeSidebandStateToHWC(HWC2::Layer*, const LayerFECompositionState&); 80 void writeBufferStateToHWC(HWC2::Layer*, const LayerFECompositionState&, bool skipLayer); 81 void writeCompositionTypeToHWC(HWC2::Layer*, Hwc2::IComposerClient::Composition,
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 75 private final ArrayList<Layer> mLayers = new ArrayList<Layer>(); 87 private final Layer mLocalLayer; 100 private static class Layer { class in GcSnapshot 119 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { in Layer() method in GcSnapshot.Layer 135 Layer(Graphics2D graphics, BufferedImage image, int flags) { in Layer() method in GcSnapshot.Layer 161 Layer makeCopy() { in makeCopy() 163 return new Layer((Graphics2D) mGraphics.create(), mBitmap); in makeCopy() 166 return new Layer((Graphics2D) mGraphics.create(), mImage, mFlags); in makeCopy() 289 for (Layer layer : mPrevious.mLayers) { in GcSnapshot() 304 Layer baseLayer = mLayers.get(0); in GcSnapshot() [all …]
|
/frameworks/base/libs/hwui/ |
D | Layer.cpp | 26 Layer::Layer(RenderState& renderState, sk_sp<SkColorFilter> colorFilter, int alpha, in Layer() function in android::uirenderer::Layer 40 Layer::~Layer() { in ~Layer() 44 void Layer::postDecStrong() { in postDecStrong() 48 SkBlendMode Layer::getMode() const { in getMode() 90 void Layer::draw(SkCanvas* canvas) { in draw()
|
/frameworks/native/libs/vr/libvrflinger/ |
D | hardware_composer.h | 58 class Layer { 60 Layer() = default; 72 Layer(Hwc2::Composer* composer, const DisplayParams& display_params, 86 Layer(Hwc2::Composer* composer, const DisplayParams& display_params, 90 Layer(Layer&&) noexcept; 91 Layer& operator=(Layer&&) noexcept; 93 ~Layer(); 128 HWC::Layer GetLayerHandle() const { return hardware_composer_layer_; } in GetLayerHandle() 150 bool operator<(const Layer& other) const { 290 Layer(const Layer&) = delete; [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | LayerHistory.h | 33 class Layer; variable 49 void registerLayer(Layer*, LayerVoteType type); 65 void record(Layer*, nsecs_t presentTime, nsecs_t now, LayerUpdateType updateType); 74 void deregisterLayer(Layer*); 81 using LayerPair = std::pair<Layer*, std::unique_ptr<LayerInfo>>;
|
/frameworks/base/libs/hwui/renderstate/ |
D | RenderState.h | 27 class Layer; variable 51 void registerLayer(Layer* layer) { mActiveLayers.insert(layer); } in registerLayer() 52 void unregisterLayer(Layer* layer) { mActiveLayers.erase(layer); } in unregisterLayer() 68 std::set<Layer*> mActiveLayers;
|
/frameworks/native/services/surfaceflinger/layerproto/ |
D | LayerProtoParser.cpp | 26 bool sortLayers(LayerProtoParser::Layer* lhs, const LayerProtoParser::Layer* rhs) { in sortLayers() 45 for (Layer& layer : layerTree.allLayers) { in generateLayerTree() 55 std::vector<LayerProtoParser::Layer> LayerProtoParser::generateLayerList( in generateLayerList() 57 std::vector<Layer> layerList; in generateLayerList() 58 std::unordered_map<int32_t, Layer*> layerMap; in generateLayerList() 77 LayerProtoParser::Layer LayerProtoParser::generateLayer(const LayerProto& layerProto) { in generateLayer() 78 Layer layer; in generateLayer() 176 std::unordered_map<int32_t, Layer*>& layerMap) { in updateChildrenAndRelative() 206 for (const LayerProtoParser::Layer* layer : layerTree.topLevelLayers) { in layerTreeToString() 216 std::string LayerProtoParser::layerToString(const LayerProtoParser::Layer* layer) { in layerToString() [all …]
|