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

Unified Diff: src/core/SkValidatingReadBuffer.h

Issue 2334123003: Add SkColor4f serialization (Closed)
Patch Set: Switched to memcpy, rebased Created 4 years, 3 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 | « src/core/SkReadBuffer.cpp ('k') | src/core/SkValidatingReadBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkValidatingReadBuffer.h
diff --git a/src/core/SkValidatingReadBuffer.h b/src/core/SkValidatingReadBuffer.h
index bad5f2fa93047021ecb238bec91b50808f801459..825c4b9af3819f9581ab0cd6c318c9f6bfccb075 100644
--- a/src/core/SkValidatingReadBuffer.h
+++ b/src/core/SkValidatingReadBuffer.h
@@ -44,6 +44,7 @@ public:
// common data structures
SkFlattenable* readFlattenable(SkFlattenable::Type type) override;
+ void readColor4f(SkColor4f* color) override;
void readPoint(SkPoint* point) override;
void readMatrix(SkMatrix* matrix) override;
void readIRect(SkIRect* rect) override;
@@ -55,6 +56,7 @@ public:
// binary data and arrays
bool readByteArray(void* value, size_t size) override;
bool readColorArray(SkColor* colors, size_t size) override;
+ bool readColor4fArray(SkColor4f* colors, size_t size) override;
bool readIntArray(int32_t* values, size_t size) override;
bool readPointArray(SkPoint* points, size_t size) override;
bool readScalarArray(SkScalar* values, size_t size) override;
« no previous file with comments | « src/core/SkReadBuffer.cpp ('k') | src/core/SkValidatingReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698