Home
last modified time | relevance | path

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

123

/frameworks/native/services/surfaceflinger/
DLayer.cpp56 int32_t Layer::sSequence = 1;
58 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, in Layer() function in android::Layer
119 void Layer::onFirstRef() { in onFirstRef()
141 Layer::~Layer() { in ~Layer()
154 void Layer::onLayerDisplayed(const sp<const DisplayDevice>& /* hw */, in onLayerDisplayed()
162 void Layer::onFrameAvailable() { in onFrameAvailable()
167 void Layer::onSidebandStreamChanged() { in onSidebandStreamChanged()
177 void Layer::onRemoved() { in onRemoved()
185 const String8& Layer::getName() const { in getName()
189 status_t Layer::setBuffers( uint32_t w, uint32_t h, in setBuffers()
[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.h67 class Layer; variable
131 const Vector< sp<Layer> >& getLayerSortedByZForHwcDisplay(int id);
140 friend class Layer; variable
154 class LayerVector : public SortedVector< sp<Layer> > {
284 sp<Layer>* outLayer);
288 sp<IGraphicBufferProducer>* outGbp, sp<Layer>* outLayer);
297 status_t onLayerDestroyed(const wp<Layer>& layer);
300 status_t removeLayer(const sp<Layer>& layer);
306 const sp<Layer>& lbc);
425 Vector< sp<Layer> > mLayersPendingRemoval;
[all …]
DLayer.h70 class Layer : public SurfaceFlingerConsumer::ContentsChangedListener {
121 Layer(SurfaceFlinger* flinger, const sp<Client>& client,
124 virtual ~Layer();
163 virtual bool isOpaque(const Layer::State& s) const;
322 wp<Layer> mLayer;
326 LayerCleaner(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer);
DSurfaceFlinger.cpp972 Vector< sp<Layer> > layersSortedByZ; in rebuildLayerStacks()
982 const sp<Layer>& layer(layers[i]); in rebuildLayerStacks()
983 const Layer::State& s(layer->getDrawingState()); in rebuildLayerStacks()
1041 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1048 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1064 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1074 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1085 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1091 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1158 const Vector< sp<Layer> >& currentLayers(hw->getVisibleLayersSortedByZ()); in postFramebuffer()
[all …]
DDisplayDevice.h43 class Layer; variable
107 void setVisibleLayersSortedByZ(const Vector< sp<Layer> >& layers);
108 const Vector< sp<Layer> >& getVisibleLayersSortedByZ() const;
203 Vector< sp<Layer> > mVisibleLayersSortedByZ;
DLayerDim.cpp36 : Layer(flinger, client, name, w, h, flags) { in LayerDim()
57 const Layer::State& s(getDrawingState()); in isVisible()
/frameworks/base/libs/hwui/
DLayer.cpp32 Layer::Layer(Type layerType, RenderState& renderState, const uint32_t layerWidth, const uint32_t la… in Layer() function in android::uirenderer::Layer
66 Layer::~Layer() { in ~Layer()
79 uint32_t Layer::computeIdealWidth(uint32_t layerWidth) { in computeIdealWidth()
83 uint32_t Layer::computeIdealHeight(uint32_t layerHeight) { in computeIdealHeight()
87 void Layer::requireRenderer() { in requireRenderer()
94 void Layer::updateLightPosFromRenderer(const OpenGLRenderer& rootRenderer) { in updateLightPosFromRenderer()
105 bool Layer::resize(const uint32_t width, const uint32_t height) { in resize()
151 void Layer::removeFbo(bool flush) { in removeFbo()
170 void Layer::updateDeferred(RenderNode* renderNode, int left, int top, int right, int bottom) { in updateDeferred()
178 void Layer::setPaint(const SkPaint* paint) { in setPaint()
[all …]
DLayerRenderer.h49 LayerRenderer(RenderState& renderState, Layer* layer);
57 static Layer* createTextureLayer(RenderState& renderState);
58 static Layer* createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height);
59 static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height);
60 static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height,
62 static void destroyLayer(Layer* layer);
63 ANDROID_API static void destroyLayerDeferred(Layer* layer);
64 static bool copyLayer(RenderState& renderState, Layer* layer, SkBitmap* bitmap);
66 static void flushLayer(RenderState& renderState, Layer* layer);
78 Layer* mLayer;
DLayerCache.cpp81 void LayerCache::deleteLayer(Layer* layer) { in deleteLayer()
86 layer->state = Layer::kState_DeletedFromCache; in deleteLayer()
99 Layer* LayerCache::get(RenderState& renderState, const uint32_t width, const uint32_t height) { in get()
100 Layer* layer = NULL; in get()
110 layer->state = Layer::kState_RemovedFromCache; in get()
117 layer = new Layer(Layer::kType_DisplayList, renderState, entry.mWidth, entry.mHeight); in get()
144 bool LayerCache::put(Layer* layer) { in put()
156 Layer* victim = mCache.itemAt(position).mLayer; in put()
171 layer->state = Layer::kState_InCache; in put()
175 layer->state = Layer::kState_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()
130 Layer* mLayer;
135 void deleteLayer(Layer* layer);
DResourceCache.h72 void incrementRefcount(Layer* resource);
77 void incrementRefcountLocked(Layer* resource);
82 void decrementRefcount(Layer* resource);
87 void decrementRefcountLocked(Layer* resource);
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()
256 bool LayerRenderer::resizeLayer(Layer* layer, uint32_t width, uint32_t height) { in resizeLayer()
272 Layer* LayerRenderer::createTextureLayer(RenderState& renderState) { in createTextureLayer()
275 Layer* layer = new Layer(Layer::kType_Texture, renderState, 0, 0); in createTextureLayer()
291 void LayerRenderer::updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, in updateTextureLayer()
311 void LayerRenderer::destroyLayer(Layer* layer) { in destroyLayer()
331 void LayerRenderer::destroyLayerDeferred(Layer* layer) { in destroyLayerDeferred()
339 void LayerRenderer::flushLayer(RenderState& renderState, Layer* layer) { in flushLayer()
[all …]
DRenderState.h55 void registerLayer(const Layer* layer) { in registerLayer()
61 void unregisterLayer(const Layer* layer) { in unregisterLayer()
87 std::set<const Layer*> mActiveLayers;
DDeferredLayerUpdater.h39 ANDROID_API DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer);
79 ANDROID_API Layer* backingLayer() { in backingLayer()
99 Layer* mLayer;
DOpenGLRenderer.h149 void pushLayerUpdate(Layer* layer);
150 void cancelLayerUpdate(Layer* layer);
169 virtual status_t drawLayer(Layer* layer, float x, float y);
388 void attachStencilBufferToLayer(Layer* layer);
440 void drawTextureLayer(Layer* layer, const Rect& rect);
458 inline float getLayerAlpha(const Layer* layer) const;
570 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip);
578 void composeLayerRegion(Layer* layer, const Rect& rect);
587 void composeLayerRect(Layer* layer, const Rect& rect, bool swap = false);
860 void setupDrawBlending(const Layer* layer, bool swapSrcDst = false);
[all …]
DResourceCache.cpp78 void ResourceCache::incrementRefcount(Layer* layerResource) { in incrementRefcount()
106 void ResourceCache::incrementRefcountLocked(Layer* layerResource) { in incrementRefcountLocked()
129 void ResourceCache::decrementRefcount(Layer* layerResource) { in decrementRefcount()
160 void ResourceCache::decrementRefcountLocked(Layer* layerResource) { in decrementRefcountLocked()
309 Layer* layer = (Layer*) resource; in deleteResourceReferenceLocked()
DDeferredLayerUpdater.cpp29 DeleteLayerTask(renderthread::EglManager& eglManager, Layer* layer) in DeleteLayerTask()
43 Layer* mLayer;
46 DeferredLayerUpdater::DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer) in DeferredLayerUpdater()
DLayer.h55 class Layer {
73Layer(Type type, RenderState& renderState, const uint32_t layerWidth, const uint32_t layerHeight);
74 ~Layer();
DDisplayList.h58 class Layer; variable
150 Vector<Layer*> layers;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java66 private final ArrayList<Layer> mLayers = new ArrayList<Layer>();
79 private final Layer mLocalLayer;
92 private static class Layer { class in GcSnapshot
111 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { in Layer() method in GcSnapshot.Layer
127 Layer(Graphics2D graphics, BufferedImage image, int flags) { in Layer() method in GcSnapshot.Layer
153 Layer makeCopy() { in makeCopy()
155 return new Layer((Graphics2D) mGraphics.create(), mBitmap); in makeCopy()
158 return new Layer((Graphics2D) mGraphics.create(), mImage, mFlags); in makeCopy()
282 for (Layer layer : mPrevious.mLayers) { in GcSnapshot()
297 Layer baseLayer = mLayers.get(0); in GcSnapshot()
[all …]
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h44 class Layer; variable
86 Layer* createTextureLayer();
DRenderProxy.h42 class Layer; variable
82 static void enqueueDestroyLayer(Layer* layer);
/frameworks/base/docs/html/training/wearables/data-layer/
Dindex.jd18 The Wearable Data Layer API, which is part of Google Play services, provides a communication channel
69 …{@docRoot}training/wearables/data-layer/data-items.html">Accessing the Wearable Data Layer</a></dt>
70 <dd>This lesson shows you how to create a client to access the Data Layer APIs.</dd>
83 …<dt><a href="{@docRoot}training/wearables/data-layer/events.html">Handling Data Layer Events</a></…

123