/frameworks/native/services/surfaceflinger/ |
D | Layer.cpp | 55 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 …]
|
D | Client.h | 33 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;
|
D | Client.cpp | 46 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()
|
D | SurfaceFlinger.h | 66 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 …]
|
D | DisplayDevice.h | 43 class Layer; variable 105 void setVisibleLayersSortedByZ(const Vector< sp<Layer> >& layers); 106 const Vector< sp<Layer> >& getVisibleLayersSortedByZ() const; 192 Vector< sp<Layer> > mVisibleLayersSortedByZ;
|
D | SurfaceFlinger.cpp | 1012 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 …]
|
D | Layer.h | 69 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);
|
D | LayerDim.cpp | 36 : Layer(flinger, client, name, w, h, flags) { in LayerDim() 56 const Layer::State& s(getDrawingState()); in isVisible()
|
D | SurfaceTextureLayer.h | 30 class Layer; variable
|
D | LayerDim.h | 29 class LayerDim : public Layer
|
D | Android.mk | 11 Layer.cpp \
|
/frameworks/base/libs/hwui/ |
D | LayerRenderer.h | 47 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;
|
D | Layer.cpp | 31 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 …]
|
D | LayerCache.h | 58 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);
|
D | LayerCache.cpp | 77 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()
|
D | ResourceCache.h | 78 void incrementRefcount(Layer* resource); 85 void incrementRefcountLocked(Layer* resource); 92 void decrementRefcount(Layer* resource); 99 void decrementRefcountLocked(Layer* resource);
|
D | LayerRenderer.cpp | 36 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 …]
|
D | OpenGLRenderer.h | 215 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 …]
|
D | ResourceCache.cpp | 88 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()
|
D | Layer.h | 52 struct Layer { struct 53 Layer(const uint32_t layerWidth, const uint32_t layerHeight); 54 ~Layer();
|
D | DisplayListRenderer.h | 97 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;
|
D | Caches.h | 167 void deleteLayerDeferred(Layer* layer); 405 Vector<Layer*> mLayerGarbage;
|
D | Snapshot.h | 149 Layer* layer;
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | GcSnapshot.java | 65 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/ |
D | android_view_GLES20Canvas.cpp | 806 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 …]
|