diff options
author | Chris Craik <ccraik@google.com> | 2014-12-10 17:05:43 -0800 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-12-10 17:05:43 -0800 |
commit | e2831a181f14dd6ca0e601a4c3cdc313a58faaae (patch) | |
tree | 62a964b423bcccd87cf9f25b732dcaf7f0b4956c /libs/hwui/OpenGLRenderer.h | |
parent | 88daefb9485d0606ae0554514ae149bc97c7b4b7 (diff) | |
parent | 5369b76963a344d08fda4532227a6f0da28fd23a (diff) | |
download | frameworks_base-e2831a181f14dd6ca0e601a4c3cdc313a58faaae.zip frameworks_base-e2831a181f14dd6ca0e601a4c3cdc313a58faaae.tar.gz frameworks_base-e2831a181f14dd6ca0e601a4c3cdc313a58faaae.tar.bz2 |
resolved conflicts for merge of 5369b769 to master
Change-Id: Iccb2ce948321534e05d67e64dc40a38332adb1a7
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rwxr-xr-x | libs/hwui/OpenGLRenderer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index fde9e0f..d3c35a8 100755 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -384,6 +384,12 @@ public: virtual void onSnapshotRestored(const Snapshot& removed, const Snapshot& restored); virtual GLuint onGetTargetFbo() const { return 0; } + SkPath* allocPathForFrame() { + SkPath* path = new SkPath(); + mTempPaths.push_back(path); + return path; + } + protected: /** * Perform the setup specific to a frame. This method does not @@ -1056,6 +1062,9 @@ private: uint8_t mAmbientShadowAlpha; uint8_t mSpotShadowAlpha; + // Paths kept alive for the duration of the frame + std::vector<SkPath*> mTempPaths; + friend class Layer; friend class TextSetupFunctor; friend class DrawBitmapOp; |