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

Unified Diff: cc/resources/picture.h

Issue 18078003: Use factory for creating SkPicture from a stream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to comments. Created 7 years, 6 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 | cc/resources/picture.cc » ('j') | cc/resources/picture.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture.h
diff --git a/cc/resources/picture.h b/cc/resources/picture.h
index 6419b3418cfd3a9457473c1f71add5bd7bc20b3f..49c0746286539ab3078d3f2a15d4246595893237 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -114,13 +114,16 @@ class CC_EXPORT Picture
private:
explicit Picture(gfx::Rect layer_rect);
- Picture(const base::Value*, bool* success);
// This constructor assumes SkPicture is already ref'd and transfers
// ownership to this picture.
Picture(const skia::RefPtr<SkPicture>&,
gfx::Rect layer_rect,
gfx::Rect opaque_rect,
const PixelRefMap& pixel_refs);
+ // This constructor will call AdoptRef on the SkPicture.
+ Picture(SkPicture*,
+ gfx::Rect layer_rect,
+ gfx::Rect opaque_rect);
~Picture();
gfx::Rect layer_rect_;
« no previous file with comments | « no previous file | cc/resources/picture.cc » ('j') | cc/resources/picture.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698