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

Unified Diff: cc/resources/picture.h

Issue 13884018: cc: Add base64 encoding to picture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 1.0 -> 1.0f Created 7 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 | « cc/cc_tests.gyp ('k') | cc/resources/picture.cc » ('j') | no next file with comments »
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 8598fbf62b3c0a7ce983c9acd10737ef19e71d4a..276563e96a9b0fb7064a8e4786fbd4e251feb49d 100644
--- a/cc/resources/picture.h
+++ b/cc/resources/picture.h
@@ -6,6 +6,7 @@
#define CC_RESOURCES_PICTURE_H_
#include <list>
+#include <string>
#include <vector>
#include "base/basictypes.h"
@@ -59,6 +60,9 @@ class CC_EXPORT Picture
const gfx::Rect& layer_rect,
std::list<skia::LazyPixelRef*>& pixel_ref_list);
+ void AsBase64String(std::string* output) const;
+ void SetPictureFromBase64String(const std::string& encoded);
nduca 2013/04/18 19:43:48 Does this include set layer_rect and opaque_rect?
+
private:
explicit Picture(gfx::Rect layer_rect);
// This constructor assumes SkPicture is already ref'd and transfers
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/resources/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698