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

Unified Diff: cc/resources/skpicture_content_layer_updater.h

Issue 236633008: Switching Chromium to use new Skia SkPictureRecorder API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address code review issue Created 6 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
Index: cc/resources/skpicture_content_layer_updater.h
diff --git a/cc/resources/skpicture_content_layer_updater.h b/cc/resources/skpicture_content_layer_updater.h
index e5891841fed1d06271daeac24b058fec3be4f3b6..41b8d1cd96e18c0b8a60db44634a8b9b7b3e0ecd 100644
--- a/cc/resources/skpicture_content_layer_updater.h
+++ b/cc/resources/skpicture_content_layer_updater.h
@@ -6,6 +6,7 @@
#define CC_RESOURCES_SKPICTURE_CONTENT_LAYER_UPDATER_H_
#include "cc/resources/content_layer_updater.h"
+#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkPicture.h"
class SkCanvas;
@@ -32,8 +33,8 @@ class SkPictureContentLayerUpdater : public ContentLayerUpdater {
void DrawPicture(SkCanvas* canvas);
private:
- // Recording canvas.
- SkPicture picture_;
+ // Recorded picture
enne (OOO) 2014/04/15 01:10:39 You could probably just remove this comment.
robertphillips 2014/04/15 15:37:04 Done.
+ skia::RefPtr<SkPicture> picture_;
DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater);
};

Powered by Google App Engine
This is Rietveld 408576698