diff options
author | John Reck <jreck@google.com> | 2018-05-24 16:27:35 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2018-05-30 16:40:07 -0700 |
commit | e4c1e6c5a18eb9cfa9025363c5a991b2c683ed68 (patch) | |
tree | 0135f234fc7e60854587585e4eb3c8875aeddf0d /libs/hwui/RenderNode.h | |
parent | 1a2a40552a261bf3efecf09a9af472c4e9d0157c (diff) |
Remove dead code
Test: builds
Change-Id: I57cf72ca460115463d7759097d5ba598b5ec1775
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r-- | libs/hwui/RenderNode.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 45a53f9a37df..dc962f307903 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -48,7 +48,6 @@ namespace android { namespace uirenderer { class CanvasState; -class OffscreenBuffer; class Rect; class SkiaShader; struct RenderNodeOp; @@ -172,9 +171,6 @@ public: } const DisplayList* getDisplayList() const { return mDisplayList; } - OffscreenBuffer* getLayer() const { return mLayer; } - OffscreenBuffer** getLayerHandle() { return &mLayer; } // ugh... - void setLayer(OffscreenBuffer* layer) { mLayer = layer; } // Note: The position callbacks are relying on the listener using // the frameNumber to appropriately batch/synchronize these transactions. @@ -250,10 +246,6 @@ private: friend class AnimatorManager; AnimatorManager mAnimatorManager; - // Owned by RT. Lifecycle is managed by prepareTree(), with the exception - // being in ~RenderNode() which may happen on any thread. - OffscreenBuffer* mLayer = nullptr; - /** * Draw time state - these properties are only set and used during rendering */ @@ -292,7 +284,7 @@ public: * Returns true if an offscreen layer from any renderPipeline is attached * to this node. */ - bool hasLayer() const { return mLayer || mSkiaLayer.get(); } + bool hasLayer() const { return mSkiaLayer.get(); } /** * Used by the RenderPipeline to attach an offscreen surface to the RenderNode. |