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

Side by Side Diff: tools/debugger/SkJsonWriteBuffer.h

Issue 2334123003: Add SkColor4f serialization (Closed)
Patch Set: Switched to memcpy, rebased Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « tools/debugger/SkDrawCommand.cpp ('k') | tools/debugger/SkJsonWriteBuffer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 Google Inc. 2 * Copyright 2016 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkJsonWriteBuffer_DEFINED 8 #ifndef SkJsonWriteBuffer_DEFINED
9 #define SkJsonWriteBuffer_DEFINED 9 #define SkJsonWriteBuffer_DEFINED
10 10
(...skipping 17 matching lines...) Expand all
28 void writeScalar(SkScalar value) override; 28 void writeScalar(SkScalar value) override;
29 void writeScalarArray(const SkScalar* value, uint32_t count) override; 29 void writeScalarArray(const SkScalar* value, uint32_t count) override;
30 void writeInt(int32_t value) override; 30 void writeInt(int32_t value) override;
31 void writeIntArray(const int32_t* value, uint32_t count) override; 31 void writeIntArray(const int32_t* value, uint32_t count) override;
32 void writeUInt(uint32_t value) override; 32 void writeUInt(uint32_t value) override;
33 void writeString(const char* value) override; 33 void writeString(const char* value) override;
34 34
35 void writeFlattenable(const SkFlattenable* flattenable) override; 35 void writeFlattenable(const SkFlattenable* flattenable) override;
36 void writeColor(SkColor color) override; 36 void writeColor(SkColor color) override;
37 void writeColorArray(const SkColor* color, uint32_t count) override; 37 void writeColorArray(const SkColor* color, uint32_t count) override;
38 void writeColor4f(const SkColor4f& color) override;
39 void writeColor4fArray(const SkColor4f* color, uint32_t count) override;
38 void writePoint(const SkPoint& point) override; 40 void writePoint(const SkPoint& point) override;
39 void writePointArray(const SkPoint* point, uint32_t count) override; 41 void writePointArray(const SkPoint* point, uint32_t count) override;
40 void writeMatrix(const SkMatrix& matrix) override; 42 void writeMatrix(const SkMatrix& matrix) override;
41 void writeIRect(const SkIRect& rect) override; 43 void writeIRect(const SkIRect& rect) override;
42 void writeRect(const SkRect& rect) override; 44 void writeRect(const SkRect& rect) override;
43 void writeRegion(const SkRegion& region) override; 45 void writeRegion(const SkRegion& region) override;
44 void writePath(const SkPath& path) override; 46 void writePath(const SkPath& path) override;
45 size_t writeStream(SkStream* stream, size_t length) override; 47 size_t writeStream(SkStream* stream, size_t length) override;
46 void writeBitmap(const SkBitmap& bitmap) override; 48 void writeBitmap(const SkBitmap& bitmap) override;
47 void writeImage(const SkImage*) override; 49 void writeImage(const SkImage*) override;
48 void writeTypeface(SkTypeface* typeface) override; 50 void writeTypeface(SkTypeface* typeface) override;
49 void writePaint(const SkPaint& paint) override; 51 void writePaint(const SkPaint& paint) override;
50 52
51 const Json::Value& getValue() const { return fJson; } 53 const Json::Value& getValue() const { return fJson; }
52 54
53 private: 55 private:
54 void append(const char* type, const Json::Value& value); 56 void append(const char* type, const Json::Value& value);
55 57
56 UrlDataManager* fUrlDataManager; 58 UrlDataManager* fUrlDataManager;
57 Json::Value fJson; 59 Json::Value fJson;
58 }; 60 };
59 61
60 #endif 62 #endif
OLDNEW
« no previous file with comments | « tools/debugger/SkDrawCommand.cpp ('k') | tools/debugger/SkJsonWriteBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698