Home
last modified time | relevance | path

Searched refs:Layer (Results 1 – 25 of 80) sorted by relevance

1234

/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.h25 struct Layer;
29 LayerRef(const Layer* layer);
36 operator const Layer*() const { return layer_; }
42 const Layer* layer_;
48 const Layer& GetLayer(uint32_t index);
49 const Layer* FindLayer(const char* name);
51 const VkLayerProperties& GetLayerProperties(const Layer& layer);
52 bool IsLayerGlobal(const Layer& layer);
53 const VkExtensionProperties* GetLayerInstanceExtensions(const Layer& layer,
55 const VkExtensionProperties* GetLayerDeviceExtensions(const Layer& layer,
[all …]
Dlayers_extensions.cpp54 struct Layer { struct
90 std::vector<Layer>& instance_layers) const;
92 void* GetGPA(const Layer& layer,
144 std::vector<Layer>& instance_layers) const { in EnumerateLayers()
215 Layer layer; in EnumerateLayers()
285 void* LayerLibrary::GetGPA(const Layer& layer, in GetGPA()
305 std::vector<Layer> g_instance_layers;
416 void* GetLayerGetProcAddr(const Layer& layer, in GetLayerGetProcAddr()
438 const Layer& GetLayer(uint32_t index) { in GetLayer()
442 const Layer* FindLayer(const char* name) { in FindLayer()
[all …]
/frameworks/base/libs/hwui/
DLayer.cpp38 Layer::Layer(Type layerType, RenderState& renderState, uint32_t layerWidth, uint32_t layerHeight) in Layer() function in android::uirenderer::Layer
39 : GpuMemoryTracker(GpuObjectType::Layer) in Layer()
54 Layer::~Layer() { in ~Layer()
66 void Layer::onGlContextLost() { in onGlContextLost()
71 uint32_t Layer::computeIdealWidth(uint32_t layerWidth) { in computeIdealWidth()
75 uint32_t Layer::computeIdealHeight(uint32_t layerHeight) { in computeIdealHeight()
79 void Layer::requireRenderer() { in requireRenderer()
86 void Layer::updateLightPosFromRenderer(const OpenGLRenderer& rootRenderer) { in updateLightPosFromRenderer()
99 bool Layer::resize(const uint32_t width, const uint32_t height) { in resize()
145 void Layer::removeFbo(bool flush) { in removeFbo()
[all …]
DLayerRenderer.h49 LayerRenderer(RenderState& renderState, Layer* layer);
58 static Layer* createTextureLayer(RenderState& renderState);
59 static Layer* createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height);
60 static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height);
61 static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height,
63 static void destroyLayer(Layer* layer);
64 static bool copyLayer(RenderState& renderState, Layer* layer, SkBitmap* bitmap);
66 static void flushLayer(RenderState& renderState, Layer* layer);
78 Layer* mLayer;
DLayerCache.cpp74 void LayerCache::deleteLayer(Layer* layer) { in deleteLayer()
79 layer->state = Layer::State::DeletedFromCache; in deleteLayer()
91 Layer* LayerCache::get(RenderState& renderState, const uint32_t width, const uint32_t height) { in get()
92 Layer* layer = nullptr; in get()
102 layer->state = Layer::State::RemovedFromCache; in get()
109 layer = new Layer(Layer::Type::DisplayList, renderState, entry.mWidth, entry.mHeight); in get()
130 bool LayerCache::put(Layer* layer) { in put()
138 Layer* victim = mCache.begin()->mLayer; in put()
153 layer->state = Layer::State::InCache; in put()
157 layer->state = Layer::State::FailedToCache; in put()
DLayerCache.h60 Layer* get(RenderState& renderState, const uint32_t width, const uint32_t height);
71 bool put(Layer* layer);
104 mWidth = Layer::computeIdealWidth(layerWidth); in LayerEntry()
105 mHeight = Layer::computeIdealHeight(layerHeight); in LayerEntry()
108 LayerEntry(Layer* layer): in LayerEntry()
126 Layer* mLayer;
131 void deleteLayer(Layer* layer);
DOpenGLRenderer.h150 void pushLayerUpdate(Layer* layer);
151 void cancelLayerUpdate(Layer* layer);
169 void drawLayer(Layer* layer);
388 void attachStencilBufferToLayer(Layer* layer);
440 void drawTextureLayer(Layer* layer, const Rect& rect);
447 inline float getLayerAlpha(const Layer* layer) const;
524 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip);
532 void composeLayerRegion(Layer* layer, const Rect& rect);
543 void composeLayerRectSwapped(Layer* layer, const Rect& rect);
548 void composeLayerRect(Layer* layer, const Rect& rect);
[all …]
DLayerRenderer.cpp38 LayerRenderer::LayerRenderer(RenderState& renderState, Layer* layer) in LayerRenderer()
187 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { in createRenderLayer()
199 Layer* layer = caches.layerCache.get(renderState, width, height); in createRenderLayer()
257 bool LayerRenderer::resizeLayer(Layer* layer, uint32_t width, uint32_t height) { in resizeLayer()
273 Layer* LayerRenderer::createTextureLayer(RenderState& renderState) { in createTextureLayer()
276 Layer* layer = new Layer(Layer::Type::Texture, renderState, 0, 0); in createTextureLayer()
289 void LayerRenderer::updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, in updateTextureLayer()
309 void LayerRenderer::destroyLayer(Layer* layer) { in destroyLayer()
329 void LayerRenderer::flushLayer(RenderState& renderState, Layer* layer) { in flushLayer()
354 bool LayerRenderer::copyLayer(RenderState& renderState, Layer* layer, SkBitmap* bitmap) { in copyLayer()
DDeferredLayerUpdater.h38 ANDROID_API DeferredLayerUpdater(Layer* layer);
89 Layer* backingLayer() { in backingLayer()
109 Layer* mLayer;
/frameworks/native/services/surfaceflinger/
DLayer.cpp60 int32_t Layer::sSequence = 1;
62 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, in Layer() function in android::Layer
152 void Layer::onFirstRef() { in onFirstRef()
173 Layer::~Layer() { in ~Layer()
194 void Layer::onLayerDisplayed(const sp<Fence>& releaseFence) { in onLayerDisplayed()
201 void Layer::onLayerDisplayed(const sp<const DisplayDevice>& /* hw */, in onLayerDisplayed()
210 void Layer::onFrameAvailable(const BufferItem& item) { in onFrameAvailable()
241 void Layer::onFrameReplaced(const BufferItem& item) { in onFrameReplaced()
266 void Layer::onSidebandStreamChanged() { in onSidebandStreamChanged()
276 void Layer::onRemoved() { in onRemoved()
[all …]
DClient.h33 class Layer; variable
47 void attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer);
49 void detachLayer(const Layer* layer);
51 sp<Layer> getLayerUser(const sp<IBinder>& handle) const;
74 DefaultKeyedVector< wp<IBinder>, wp<Layer> > mLayers;
DClient.cpp46 sp<Layer> layer(mLayers.valueAt(i).promote()); in ~Client()
57 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer) in attachLayer()
63 void Client::detachLayer(const Layer* layer) in detachLayer()
75 sp<Layer> Client::getLayerUser(const sp<IBinder>& handle) const in getLayerUser()
78 sp<Layer> lbc; in getLayerUser()
79 wp<Layer> layer(mLayers.valueFor(handle)); in getLayerUser()
159 sp<Layer> layer = getLayerUser(handle); in clearLayerFrameStats()
168 sp<Layer> layer = getLayerUser(handle); in getLayerFrameStats()
DSurfaceFlinger.h68 class Layer; variable
136 const Vector< sp<Layer> >& getLayerSortedByZForHwcDisplay(int id);
145 friend class Layer; variable
161 class LayerVector : public SortedVector< sp<Layer> > {
298 sp<Layer>* outLayer);
302 sp<IGraphicBufferProducer>* outGbp, sp<Layer>* outLayer);
311 status_t onLayerDestroyed(const wp<Layer>& layer);
314 status_t removeLayer(const sp<Layer>& layer);
320 const sp<Layer>& lbc);
446 Vector< sp<Layer> > mLayersPendingRemoval;
[all …]
DLayer.h72 class Layer : public SurfaceFlingerConsumer::ContentsChangedListener {
139 Layer(SurfaceFlinger* flinger, const sp<Client>& client,
142 virtual ~Layer();
198 virtual bool isOpaque(const Layer::State& s) const;
368 std::shared_ptr<HWC2::Layer> getHwcLayer(int32_t hwcId) { in getHwcLayer()
375 void setHwcLayer(int32_t hwcId, std::shared_ptr<HWC2::Layer>&& layer) { in setHwcLayer()
421 wp<Layer> mLayer;
425 LayerCleaner(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer);
569 std::shared_ptr<HWC2::Layer> layer;
DSurfaceFlinger_hwc1.cpp1113 Vector< sp<Layer> > layersSortedByZ; in rebuildLayerStacks()
1123 const sp<Layer>& layer(layers[i]); in rebuildLayerStacks()
1124 const Layer::State& s(layer->getDrawingState()); in rebuildLayerStacks()
1182 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1189 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1205 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1215 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1226 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1232 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1299 const Vector< sp<Layer> >& currentLayers(hw->getVisibleLayersSortedByZ()); in postFramebuffer()
[all …]
DDisplayDevice.h54 class Layer; variable
122 void setVisibleLayersSortedByZ(const Vector< sp<Layer> >& layers);
123 const Vector< sp<Layer> >& getVisibleLayersSortedByZ() const;
232 Vector< sp<Layer> > mVisibleLayersSortedByZ;
DLayerDim.h29 class LayerDim : public Layer
39 virtual bool isOpaque(const Layer::State&) const { return false; } in isOpaque()
DSurfaceFlinger.cpp1123 Vector<sp<Layer>> layersSortedByZ; in rebuildLayerStacks()
1134 const sp<Layer>& layer(layers[i]); in rebuildLayerStacks()
1135 const Layer::State& s(layer->getDrawingState()); in rebuildLayerStacks()
1200 const Vector<sp<Layer>>& currentLayers( in setUpHWComposer()
1358 const sp<Layer>& layer(currentLayers[i]); in handleTransactionLocked()
1363 if (flags & Layer::eVisibleRegion) in handleTransactionLocked()
1560 const sp<Layer>& layer(currentLayers[i]); in handleTransactionLocked()
1611 const sp<Layer>& layer(layers[i]); in handleTransactionLocked()
1617 const Layer::State& s(layer->getDrawingState()); in handleTransactionLocked()
1679 const sp<Layer>& layer = currentLayers[i]; in computeVisibleRegions()
[all …]
DLayerDim.cpp40 : Layer(flinger, client, name, w, h, flags) { in LayerDim()
61 const Layer::State& s(getDrawingState()); in isVisible()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java67 private final ArrayList<Layer> mLayers = new ArrayList<Layer>();
80 private final Layer mLocalLayer;
93 private static class Layer { class in GcSnapshot
112 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { in Layer() method in GcSnapshot.Layer
128 Layer(Graphics2D graphics, BufferedImage image, int flags) { in Layer() method in GcSnapshot.Layer
154 Layer makeCopy() { in makeCopy()
156 return new Layer((Graphics2D) mGraphics.create(), mBitmap); in makeCopy()
159 return new Layer((Graphics2D) mGraphics.create(), mImage, mFlags); in makeCopy()
283 for (Layer layer : mPrevious.mLayers) { in GcSnapshot()
298 Layer baseLayer = mLayers.get(0); in GcSnapshot()
[all …]
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2On1Adapter.h121 class Layer; variable
125 bool operator()(const std::shared_ptr<Layer>& lhs,
126 const std::shared_ptr<Layer>& rhs);
345 const Layer& layer);
347 const Layer& layer);
393 std::multiset<std::shared_ptr<Layer>, SortLayersByZ> mLayers;
394 std::unordered_map<size_t, std::shared_ptr<Layer>> mHwc1LayerMap;
454 LatchedState(Layer& parent, T initialValue) in LatchedState()
484 Layer& mParent;
489 class Layer {
[all …]
DHWC2.h49 class Layer; variable
63 friend class HWC2::Layer;
202 friend class HWC2::Layer;
277 std::shared_ptr<Layer>* outLayer);
281 std::unordered_map<std::shared_ptr<Layer>, Composition>* outTypes);
291 std::unordered_map<std::shared_ptr<Layer>, LayerRequest>*
298 std::unordered_map<std::shared_ptr<Layer>,
344 std::shared_ptr<Layer> getLayerById(hwc2_layer_t id) const;
352 std::unordered_map<hwc2_layer_t, std::weak_ptr<Layer>> mLayers;
356 class Layer
[all …]
DHWC2On1Adapter.cpp292 layerHook<decltype(&Layer::setCursorPosition), in doGetFunction()
293 &Layer::setCursorPosition, int32_t, int32_t>); in doGetFunction()
296 layerHook<decltype(&Layer::setBuffer), &Layer::setBuffer, in doGetFunction()
300 layerHook<decltype(&Layer::setSurfaceDamage), in doGetFunction()
301 &Layer::setSurfaceDamage, hwc_region_t>); in doGetFunction()
309 layerHook<decltype(&Layer::setColor), &Layer::setColor, in doGetFunction()
318 layerHook<decltype(&Layer::setDisplayFrame), in doGetFunction()
319 &Layer::setDisplayFrame, hwc_rect_t>); in doGetFunction()
322 layerHook<decltype(&Layer::setPlaneAlpha), in doGetFunction()
323 &Layer::setPlaneAlpha, float>); in doGetFunction()
[all …]
DHWC2.cpp489 Error Display::createLayer(std::shared_ptr<Layer>* outLayer) in createLayer()
498 auto layer = std::make_shared<Layer>(shared_from_this(), layerId); in createLayer()
531 std::unordered_map<std::shared_ptr<Layer>, Composition>* outTypes) in getChangedCompositionTypes() argument
622 std::unordered_map<std::shared_ptr<Layer>, LayerRequest>* in getRequests() argument
718 std::unordered_map<std::shared_ptr<Layer>, sp<Fence>>* outFences) const in getReleaseFences() argument
737 std::unordered_map<std::shared_ptr<Layer>, sp<Fence>> releaseFences; in getReleaseFences()
921 std::shared_ptr<Layer> Display::getLayerById(hwc2_layer_t id) const in getLayerById()
933 Layer::Layer(const std::shared_ptr<Display>& display, hwc2_layer_t id) in Layer() function in HWC2::Layer
943 Layer::~Layer() in ~Layer()
951 Error Layer::setCursorPosition(int32_t x, int32_t y) in setCursorPosition()
[all …]
/frameworks/base/libs/hwui/renderstate/
DRenderState.h43 class Layer; variable
74 void registerLayer(Layer* layer) { in registerLayer()
77 void unregisterLayer(Layer* layer) { in unregisterLayer()
124 std::set<Layer*> mActiveLayers;

1234