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

Unified Diff: cc/base/region.h

Issue 1460503004: Add support for converting cc::Region to and from protobuf. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-more-conversions
Patch Set: Created 5 years, 1 month 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/base/region.h
diff --git a/cc/base/region.h b/cc/base/region.h
index 583311e09fe007618f133e5084db6183f5ddd288..76eee641199bb0716b1c8908bd718bd9ab1ba8c4 100644
--- a/cc/base/region.h
+++ b/cc/base/region.h
@@ -23,6 +23,10 @@ class TracedValue;
namespace cc {
class SimpleEnclosedRegion;
+namespace proto {
+class Region;
+} // namespace proto
+
class CC_EXPORT Region {
public:
Region();
@@ -65,6 +69,9 @@ class CC_EXPORT Region {
scoped_ptr<base::Value> AsValue() const;
void AsValueInto(base::trace_event::TracedValue* array) const;
+ void ToProtobuf(proto::Region* proto) const;
+ void FromProtobuf(const proto::Region& proto);
+
class CC_EXPORT Iterator {
public:
Iterator();

Powered by Google App Engine
This is Rietveld 408576698