diff options
author | 2016-06-28 01:31:02 +0000 | |
---|---|---|
committer | 2016-06-28 01:31:02 +0000 | |
commit | 892f8e7d4f6391ce267d5add91638014e6c0e5d5 (patch) | |
tree | ceb9f082c94a70428ede579b0224ad278a7fbb39 /libs/hwui/RenderNode.h | |
parent | 42daac6289ba8ec8a291a4bf774b052c8a7961d3 (diff) | |
parent | 8701bff9bacd033ecade271c9f30ef5d734e8cc0 (diff) |
Merge \"Fix SurfaceViewPositionListener race bugs\" into nyc-mr1-dev
am: 8701bff9ba
Change-Id: I17b1cf4e81321edb04ae9ac99449160a705ba824
Diffstat (limited to 'libs/hwui/RenderNode.h')
-rw-r--r-- | libs/hwui/RenderNode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/hwui/RenderNode.h b/libs/hwui/RenderNode.h index 1eaf5d61d465..f9735a231d7a 100644 --- a/libs/hwui/RenderNode.h +++ b/libs/hwui/RenderNode.h @@ -232,7 +232,7 @@ public: // the frameNumber to appropriately batch/synchronize these transactions. // There is no other filtering/batching to ensure that only the "final" // state called once per frame. - class ANDROID_API PositionListener { + class ANDROID_API PositionListener : public VirtualLightRefBase { public: virtual ~PositionListener() {} // Called when the RenderNode's position changes @@ -247,7 +247,7 @@ public: // before the RenderNode is used for drawing. // RenderNode takes ownership of the pointer ANDROID_API void setPositionListener(PositionListener* listener) { - mPositionListener.reset(listener); + mPositionListener = listener; } // This is only modified in MODE_FULL, so it can be safely accessed @@ -366,7 +366,7 @@ private: // mDisplayList, not mStagingDisplayList. uint32_t mParentCount; - std::unique_ptr<PositionListener> mPositionListener; + sp<PositionListener> mPositionListener; }; // class RenderNode } /* namespace uirenderer */ |