Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/
DLayer.cpp55 int32_t Layer::sSequence = 1;
57 Layer::Layer(SurfaceFlinger* flinger, const sp<Client>& client, in Layer() function in android::Layer
115 void Layer::onFirstRef() { in onFirstRef()
134 Layer::~Layer() { in ~Layer()
147 void Layer::onLayerDisplayed(const sp<const DisplayDevice>& hw, in onLayerDisplayed()
155 void Layer::onFrameAvailable() { in onFrameAvailable()
163 void Layer::onRemoved() { in onRemoved()
171 const String8& Layer::getName() const { in getName()
175 status_t Layer::setBuffers( uint32_t w, uint32_t h, in setBuffers()
202 sp<IBinder> Layer::getHandle() { in getHandle()
[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;
70 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()
DSurfaceFlinger.h66 class Layer; variable
130 const Vector< sp<Layer> >& getLayerSortedByZForHwcDisplay(int id);
139 friend class Layer; variable
153 class LayerVector : public SortedVector< sp<Layer> > {
275 sp<Layer>* outLayer);
279 sp<IGraphicBufferProducer>* outGbp, sp<Layer>* outLayer);
288 status_t onLayerDestroyed(const wp<Layer>& layer);
291 status_t removeLayer(const sp<Layer>& layer);
297 const sp<Layer>& lbc);
416 Vector< sp<Layer> > mLayersPendingRemoval;
[all …]
DDisplayDevice.h43 class Layer; variable
105 void setVisibleLayersSortedByZ(const Vector< sp<Layer> >& layers);
106 const Vector< sp<Layer> >& getVisibleLayersSortedByZ() const;
192 Vector< sp<Layer> > mVisibleLayersSortedByZ;
DSurfaceFlinger.cpp1012 Vector< sp<Layer> > layersSortedByZ; in rebuildLayerStacks()
1022 const sp<Layer>& layer(layers[i]); in rebuildLayerStacks()
1023 const Layer::State& s(layer->getDrawingState()); in rebuildLayerStacks()
1056 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1063 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1079 const Vector< sp<Layer> >& currentLayers( in setUpHWComposer()
1089 const sp<Layer>& layer(currentLayers[i]); in setUpHWComposer()
1153 const Vector< sp<Layer> >& currentLayers(hw->getVisibleLayersSortedByZ()); in postFramebuffer()
1220 const sp<Layer>& layer(currentLayers[i]); in handleTransactionLocked()
1225 if (flags & Layer::eVisibleRegion) in handleTransactionLocked()
[all …]
DLayer.h69 class Layer : public SurfaceFlingerConsumer::FrameAvailableListener {
116 Layer(SurfaceFlinger* flinger, const sp<Client>& client,
119 virtual ~Layer();
300 wp<Layer> mLayer;
304 LayerCleaner(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer);
DLayerDim.cpp36 : Layer(flinger, client, name, w, h, flags) { in LayerDim()
56 const Layer::State& s(getDrawingState()); in isVisible()
DSurfaceTextureLayer.h30 class Layer; variable
DLayerDim.h29 class LayerDim : public Layer
DAndroid.mk11 Layer.cpp \
/frameworks/base/libs/hwui/
DLayerRenderer.h47 ANDROID_API LayerRenderer(Layer* layer);
55 ANDROID_API static Layer* createTextureLayer(bool isOpaque);
56 ANDROID_API static Layer* createLayer(uint32_t width, uint32_t height, bool isOpaque = false);
57 ANDROID_API static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height);
58 ANDROID_API static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height,
60 ANDROID_API static void destroyLayer(Layer* layer);
61 ANDROID_API static void destroyLayerDeferred(Layer* layer);
62 ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap);
64 static void flushLayer(Layer* layer);
76 Layer* mLayer;
DLayer.cpp31 Layer::Layer(const uint32_t layerWidth, const uint32_t layerHeight): in Layer() function in android::uirenderer::Layer
53 Layer::~Layer() { in ~Layer()
62 uint32_t Layer::computeIdealWidth(uint32_t layerWidth) { in computeIdealWidth()
66 uint32_t Layer::computeIdealHeight(uint32_t layerHeight) { in computeIdealHeight()
70 bool Layer::resize(const uint32_t width, const uint32_t height) { in resize()
114 void Layer::removeFbo(bool flush) { in removeFbo()
134 void Layer::setPaint(SkPaint* paint) { in setPaint()
138 void Layer::setColorFilter(SkiaColorFilter* filter) { in setColorFilter()
148 void Layer::bindTexture() const { in bindTexture()
154 void Layer::bindStencilRenderBuffer() const { in bindStencilRenderBuffer()
[all …]
DLayerCache.h58 Layer* get(const uint32_t width, const uint32_t height);
69 bool put(Layer* layer);
100 mWidth = Layer::computeIdealWidth(layerWidth); in LayerEntry()
101 mHeight = Layer::computeIdealHeight(layerHeight); in LayerEntry()
104 LayerEntry(Layer* layer): in LayerEntry()
126 Layer* mLayer;
131 void deleteLayer(Layer* layer);
DLayerCache.cpp77 void LayerCache::deleteLayer(Layer* layer) { in deleteLayer()
94 Layer* LayerCache::get(const uint32_t width, const uint32_t height) { in get()
95 Layer* layer = NULL; in get()
111 layer = new Layer(entry.mWidth, entry.mHeight); in get()
138 bool LayerCache::put(Layer* layer) { in put()
150 Layer* victim = mCache.itemAt(position).mLayer; in put()
DResourceCache.h78 void incrementRefcount(Layer* resource);
85 void incrementRefcountLocked(Layer* resource);
92 void decrementRefcount(Layer* resource);
99 void decrementRefcountLocked(Layer* resource);
DLayerRenderer.cpp36 LayerRenderer::LayerRenderer(Layer* layer): mLayer(layer) { in LayerRenderer()
187 Layer* LayerRenderer::createLayer(uint32_t width, uint32_t height, bool isOpaque) { in createLayer()
198 Layer* layer = caches.layerCache.get(width, height); in createLayer()
257 bool LayerRenderer::resizeLayer(Layer* layer, uint32_t width, uint32_t height) { in resizeLayer()
273 Layer* LayerRenderer::createTextureLayer(bool isOpaque) { in createTextureLayer()
276 Layer* layer = new Layer(0, 0); in createTextureLayer()
294 void LayerRenderer::updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, in updateTextureLayer()
313 void LayerRenderer::destroyLayer(Layer* layer) { in destroyLayer()
332 void LayerRenderer::destroyLayerDeferred(Layer* layer) { in destroyLayerDeferred()
340 void LayerRenderer::flushLayer(Layer* layer) { in flushLayer()
[all …]
DOpenGLRenderer.h215 ANDROID_API void pushLayerUpdate(Layer* layer);
216 ANDROID_API void cancelLayerUpdate(Layer* layer);
285 virtual status_t drawLayer(Layer* layer, float x, float y);
478 void attachStencilBufferToLayer(Layer* layer);
530 void drawTextureLayer(Layer* layer, const Rect& rect);
548 inline float getLayerAlpha(Layer* layer) const;
672 bool createFboLayer(Layer* layer, Rect& bounds, Rect& clip, GLuint previousFbo);
680 void composeLayerRegion(Layer* layer, const Rect& rect);
689 void composeLayerRect(Layer* layer, const Rect& rect, bool swap = false);
1003 bool updateLayer(Layer* layer, bool inFrame);
[all …]
DResourceCache.cpp88 void ResourceCache::incrementRefcount(Layer* layerResource) { in incrementRefcount()
126 void ResourceCache::incrementRefcountLocked(Layer* layerResource) { in incrementRefcountLocked()
159 void ResourceCache::decrementRefcount(Layer* layerResource) { in decrementRefcount()
200 void ResourceCache::decrementRefcountLocked(Layer* layerResource) { in decrementRefcountLocked()
391 Layer* layer = (Layer*) resource; in deleteResourceReferenceLocked()
DLayer.h52 struct Layer { struct
53 Layer(const uint32_t layerWidth, const uint32_t layerHeight);
54 ~Layer();
DDisplayListRenderer.h97 virtual status_t drawLayer(Layer* layer, float x, float y);
183 const Vector<Layer*>& getLayers() const { in getLayers()
282 inline Layer* refLayer(Layer* layer) { in refLayer()
352 Vector<Layer*> mLayers;
DCaches.h167 void deleteLayerDeferred(Layer* layer);
405 Vector<Layer*> mLayerGarbage;
DSnapshot.h149 Layer* layer;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java65 private final ArrayList<Layer> mLayers = new ArrayList<Layer>();
78 private final Layer mLocalLayer;
91 private static class Layer { class in GcSnapshot
110 Layer(Graphics2D graphics, Bitmap_Delegate bitmap) { in Layer() method in GcSnapshot.Layer
126 Layer(Graphics2D graphics, BufferedImage image, int flags) { in Layer() method in GcSnapshot.Layer
152 Layer makeCopy() { in makeCopy()
154 return new Layer((Graphics2D) mGraphics.create(), mBitmap); in makeCopy()
157 return new Layer((Graphics2D) mGraphics.create(), mImage, mFlags); in makeCopy()
281 for (Layer layer : mPrevious.mLayers) { in GcSnapshot()
296 Layer baseLayer = mLayers.get(0); in GcSnapshot()
[all …]
/frameworks/base/core/jni/
Dandroid_view_GLES20Canvas.cpp806 jobject clazz, Layer* layer) { in android_view_GLES20Canvas_createLayerRenderer()
815 static Layer* android_view_GLES20Canvas_createTextureLayer(JNIEnv* env, jobject clazz, in android_view_GLES20Canvas_createTextureLayer()
817 Layer* layer = LayerRenderer::createTextureLayer(isOpaque); in android_view_GLES20Canvas_createTextureLayer()
828 static Layer* android_view_GLES20Canvas_createLayer(JNIEnv* env, jobject clazz, in android_view_GLES20Canvas_createLayer()
830 Layer* layer = LayerRenderer::createLayer(width, height, isOpaque); in android_view_GLES20Canvas_createLayer()
843 Layer* layer, jint width, jint height, jintArray layerInfo) { in android_view_GLES20Canvas_resizeLayer()
855 Layer* layer, SkPaint* paint) { in android_view_GLES20Canvas_setLayerPaint()
862 Layer* layer, SkiaColorFilter* colorFilter) { in android_view_GLES20Canvas_setLayerColorFilter()
869 Layer* layer, jboolean isOpaque) { in android_view_GLES20Canvas_setOpaqueLayer()
876 Layer* layer, jint width, jint height, jboolean isOpaque, jobject surface) { in android_view_GLES20Canvas_updateTextureLayer()
[all …]

12