Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Unified Diff: Source/platform/graphics/GraphicsContext.h

Issue 1087633002: [SP] Allocate an SkPictureRecorder only once per GraphicsContext instantiation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext.h
diff --git a/Source/platform/graphics/GraphicsContext.h b/Source/platform/graphics/GraphicsContext.h
index 697aa1be3348fdaa8df5668028eaa66e2d446eb9..c24fca55512a206232aa32082de42cd939fad9a3 100644
--- a/Source/platform/graphics/GraphicsContext.h
+++ b/Source/platform/graphics/GraphicsContext.h
@@ -49,6 +49,7 @@ class SkImage;
class SkPaint;
class SkPath;
class SkPicture;
+class SkPictureRecorder;
class SkRRect;
class SkTextBlob;
struct SkImageInfo;
@@ -440,7 +441,9 @@ private:
AnnotationModeFlags m_annotationMode;
+ // Only used when Slimming Paint is off. When it is on, m_pictureRecorder is used instead.
Vector<OwnPtr<RecordingState>> m_recordingStateStack;
+ OwnPtr<SkPictureRecorder> m_pictureRecorder;
f(malita) 2015/04/13 21:39:45 This has the same lifetime as GC - can we drop the
chrishtr 2015/04/13 21:48:34 Done.
#if ENABLE(ASSERT)
unsigned m_layerCount;
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698