summaryrefslogtreecommitdiffstats
path: root/libs/hwui/OpenGLRenderer.h
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2014-12-10 17:05:43 -0800
committerChris Craik <ccraik@google.com>2014-12-10 17:05:43 -0800
commite2831a181f14dd6ca0e601a4c3cdc313a58faaae (patch)
tree62a964b423bcccd87cf9f25b732dcaf7f0b4956c /libs/hwui/OpenGLRenderer.h
parent88daefb9485d0606ae0554514ae149bc97c7b4b7 (diff)
parent5369b76963a344d08fda4532227a6f0da28fd23a (diff)
downloadframeworks_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-xlibs/hwui/OpenGLRenderer.h9
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;