Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/
DLayer.cpp40 Layer::Layer(Type layerType, RenderState& renderState, uint32_t layerWidth, uint32_t layerHeight) in Layer() function in android::uirenderer::Layer
55 Layer::~Layer() { in ~Layer()
68 void Layer::onGlContextLost() { in onGlContextLost()
73 uint32_t Layer::computeIdealWidth(uint32_t layerWidth) { in computeIdealWidth()
77 uint32_t Layer::computeIdealHeight(uint32_t layerHeight) { in computeIdealHeight()
81 void Layer::requireRenderer() { in requireRenderer()
88 void Layer::updateLightPosFromRenderer(const OpenGLRenderer& rootRenderer) { in updateLightPosFromRenderer()
101 bool Layer::resize(const uint32_t width, const uint32_t height) { in resize()
147 void Layer::removeFbo(bool flush) { in removeFbo()
166 void Layer::updateDeferred(RenderNode* renderNode, int left, int top, int right, int bottom) { in updateDeferred()
[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.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 = nullptr; in get()
110 layer->state = Layer::kState_RemovedFromCache; in get()
117 layer = new Layer(Layer::kType_DisplayList, renderState, entry.mWidth, entry.mHeight); in get()
141 bool LayerCache::put(Layer* layer) { in put()
153 Layer* victim = mCache.itemAt(position).mLayer; in put()
168 layer->state = Layer::kState_InCache; in put()
172 layer->state = Layer::kState_FailedToCache; in put()
DLayerCache.h59 Layer* get(RenderState& renderState, const uint32_t width, const uint32_t height);
70 bool put(Layer* layer);
103 mWidth = Layer::computeIdealWidth(layerWidth); in LayerEntry()
104 mHeight = Layer::computeIdealHeight(layerHeight); in LayerEntry()
107 LayerEntry(Layer* layer): in LayerEntry()
129 Layer* mLayer;
134 void deleteLayer(Layer* layer);
DLayerRenderer.cpp38 LayerRenderer::LayerRenderer(RenderState& renderState, Layer* layer) in LayerRenderer()
186 Layer* LayerRenderer::createRenderLayer(RenderState& renderState, uint32_t width, uint32_t height) { in createRenderLayer()
198 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()
288 void LayerRenderer::updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, in updateTextureLayer()
308 void LayerRenderer::destroyLayer(Layer* layer) { in destroyLayer()
328 void LayerRenderer::flushLayer(RenderState& renderState, Layer* layer) { in flushLayer()
353 bool LayerRenderer::copyLayer(RenderState& renderState, Layer* layer, SkBitmap* bitmap) { in copyLayer()
DOpenGLRenderer.h170 void pushLayerUpdate(Layer* layer);
171 void cancelLayerUpdate(Layer* layer);
189 void drawLayer(Layer* layer, float x, float y);
458 void attachStencilBufferToLayer(Layer* layer);
510 void drawTextureLayer(Layer* layer, const Rect& rect);
527 inline float getLayerAlpha(const Layer* layer) const;
625 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip);
633 void composeLayerRegion(Layer* layer, const Rect& rect);
644 void composeLayerRectSwapped(Layer* layer, const Rect& rect);
649 void composeLayerRect(Layer* layer, const Rect& rect);
[all …]
DDeferredLayerUpdater.h38 ANDROID_API DeferredLayerUpdater(renderthread::RenderThread& thread, Layer* layer);
82 Layer* backingLayer() { in backingLayer()
102 Layer* mLayer;
DSkiaShader.h33 class Layer; variable
78 Layer* layer;
DCaches.h129 void deleteLayerDeferred(Layer* layer);
209 Vector<Layer*> mLayerGarbage;
DLayer.h57 class Layer : public VirtualLightRefBase {
75 Layer(Type type, RenderState& renderState, uint32_t layerWidth, uint32_t layerHeight);
76 ~Layer();
DRenderNode.h53 class Layer; variable
267 Layer* mLayer;
/frameworks/native/services/surfaceflinger/
DLayer.cpp57 int32_t Layer::sSequence = 1;
59 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, in Layer() function in android::Layer
125 void Layer::onFirstRef() { in onFirstRef()
147 Layer::~Layer() { in ~Layer()
160 void Layer::onLayerDisplayed(const sp<const DisplayDevice>& /* hw */, in onLayerDisplayed()
168 void Layer::onFrameAvailable(const BufferItem& item) { in onFrameAvailable()
199 void Layer::onFrameReplaced(const BufferItem& item) { in onFrameReplaced()
222 void Layer::onSidebandStreamChanged() { in onSidebandStreamChanged()
232 void Layer::onRemoved() { in onRemoved()
240 const String8& Layer::getName() const { in getName()
[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
156 class LayerVector : public SortedVector< sp<Layer> > {
291 sp<Layer>* outLayer);
295 sp<IGraphicBufferProducer>* outGbp, sp<Layer>* outLayer);
304 status_t onLayerDestroyed(const wp<Layer>& layer);
307 status_t removeLayer(const sp<Layer>& layer);
313 const sp<Layer>& lbc);
434 Vector< sp<Layer> > mLayersPendingRemoval;
[all …]
DLayer.h70 class Layer : public SurfaceFlingerConsumer::ContentsChangedListener {
122 Layer(SurfaceFlinger* flinger, const sp<Client>& client,
125 virtual ~Layer();
171 virtual bool isOpaque(const Layer::State& s) const;
332 wp<Layer> mLayer;
336 LayerCleaner(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer);
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;
DSurfaceFlinger.cpp1057 Vector< sp<Layer> > layersSortedByZ; in rebuildLayerStacks()
1067 const sp<Layer>& layer(layers[i]); in rebuildLayerStacks()
1068 const Layer::State& s(layer->getDrawingState()); in rebuildLayerStacks()
1126 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1133 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1149 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1159 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1170 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1176 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1243 const Vector< sp<Layer> >& currentLayers(hw->getVisibleLayersSortedByZ()); in postFramebuffer()
[all …]
DLayerDim.h29 class LayerDim : public Layer
39 virtual bool isOpaque(const Layer::State&) const { return false; } in isOpaque()
DLayerDim.cpp36 : Layer(flinger, client, name, w, h, flags) { in LayerDim()
57 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/base/libs/hwui/renderstate/
DRenderState.h41 class Layer; variable
66 void registerLayer(Layer* layer) { in registerLayer()
69 void unregisterLayer(Layer* layer) { in unregisterLayer()
117 std::set<Layer*> mActiveLayers;
/frameworks/base/docs/html/training/wearables/data-layer/
Daccessing.jd1 page.title=Accessing the Wearable Data Layer
10 <li>Set up a Google Play services client to use the Wearable Data Layer APIs</li>
23 <p>To call the Data Layer API, create an instance of
45 // Now you can use the Data Layer API
83 <code>onConnected()</code></a> callback for your client, you're ready to use the Data Layer API.</p>
Devents.jd1 page.title=Handling Data Layer Events
10 <li><a href="#Wait">Wait for the Status of Data Layer Calls</a></li>
11 <li><a href="#Listen">Listen for Data Layer Events</a></li>
17 <p>When you make calls to the Data Layer API, you can receive the status
22 <h2 id="Wait">Wait for the Status of Data Layer Calls</h2>
24 <p>You'll notice that calls to the Data Layer API sometimes return a
38 to the Data Layer API. You can run the calls asynchronously by adding a callback method
71 <h2 id="Listen">Listen for Data Layer Events </h2>
193 <h4>Permissions within Data Layer Callbacks</h4>
240 to work with the Data Layer API.
/frameworks/base/libs/hwui/renderthread/
DCanvasContext.h46 class Layer; variable
99 Layer* createTextureLayer();

123