| OLD | NEW |
| 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 SkJSONCanvas_DEFINED | 8 #ifndef SkJSONCanvas_DEFINED |
| 9 #define SkJSONCanvas_DEFINED | 9 #define SkJSONCanvas_DEFINED |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 #define SKJSONCANVAS_ATTRIBUTE_PHASE "phase" | 82 #define SKJSONCANVAS_ATTRIBUTE_PHASE "phase" |
| 83 #define SKJSONCANVAS_ATTRIBUTE_FILLTYPE "fillType" | 83 #define SKJSONCANVAS_ATTRIBUTE_FILLTYPE "fillType" |
| 84 #define SKJSONCANVAS_ATTRIBUTE_VERBS "verbs" | 84 #define SKJSONCANVAS_ATTRIBUTE_VERBS "verbs" |
| 85 #define SKJSONCANVAS_ATTRIBUTE_NAME "name" | 85 #define SKJSONCANVAS_ATTRIBUTE_NAME "name" |
| 86 #define SKJSONCANVAS_ATTRIBUTE_BYTES "bytes" | 86 #define SKJSONCANVAS_ATTRIBUTE_BYTES "bytes" |
| 87 #define SKJSONCANVAS_ATTRIBUTE_SHADER "shader" | 87 #define SKJSONCANVAS_ATTRIBUTE_SHADER "shader" |
| 88 #define SKJSONCANVAS_ATTRIBUTE_PATHEFFECT "pathEffect" | 88 #define SKJSONCANVAS_ATTRIBUTE_PATHEFFECT "pathEffect" |
| 89 #define SKJSONCANVAS_ATTRIBUTE_MASKFILTER "maskFilter" | 89 #define SKJSONCANVAS_ATTRIBUTE_MASKFILTER "maskFilter" |
| 90 #define SKJSONCANVAS_ATTRIBUTE_XFERMODE "xfermode" | 90 #define SKJSONCANVAS_ATTRIBUTE_XFERMODE "xfermode" |
| 91 #define SKJSONCANVAS_ATTRIBUTE_BACKDROP "backdrop" | 91 #define SKJSONCANVAS_ATTRIBUTE_BACKDROP "backdrop" |
| 92 #define SKJSONCANVAS_ATTRIBUTE_COLORFILTER "colorfilter" |
| 92 #define SKJSONCANVAS_ATTRIBUTE_IMAGEFILTER "imagefilter" | 93 #define SKJSONCANVAS_ATTRIBUTE_IMAGEFILTER "imagefilter" |
| 93 #define SKJSONCANVAS_ATTRIBUTE_IMAGE "image" | 94 #define SKJSONCANVAS_ATTRIBUTE_IMAGE "image" |
| 94 #define SKJSONCANVAS_ATTRIBUTE_BITMAP "bitmap" | 95 #define SKJSONCANVAS_ATTRIBUTE_BITMAP "bitmap" |
| 95 #define SKJSONCANVAS_ATTRIBUTE_SRC "src" | 96 #define SKJSONCANVAS_ATTRIBUTE_SRC "src" |
| 96 #define SKJSONCANVAS_ATTRIBUTE_DST "dst" | 97 #define SKJSONCANVAS_ATTRIBUTE_DST "dst" |
| 97 #define SKJSONCANVAS_ATTRIBUTE_STRICT "strict" | 98 #define SKJSONCANVAS_ATTRIBUTE_STRICT "strict" |
| 98 #define SKJSONCANVAS_ATTRIBUTE_DESCRIPTION "description" | 99 #define SKJSONCANVAS_ATTRIBUTE_DESCRIPTION "description" |
| 99 #define SKJSONCANVAS_ATTRIBUTE_X "x" | 100 #define SKJSONCANVAS_ATTRIBUTE_X "x" |
| 100 #define SKJSONCANVAS_ATTRIBUTE_Y "y" | 101 #define SKJSONCANVAS_ATTRIBUTE_Y "y" |
| 102 #define SKJSONCANVAS_ATTRIBUTE_RUNS "runs" |
| 103 #define SKJSONCANVAS_ATTRIBUTE_POSITIONS "positions" |
| 104 #define SKJSONCANVAS_ATTRIBUTE_GLYPHS "glyphs" |
| 105 #define SKJSONCANVAS_ATTRIBUTE_FONT "font" |
| 106 #define SKJSONCANVAS_ATTRIBUTE_TYPEFACE "typeface" |
| 101 | 107 |
| 102 #define SKJSONCANVAS_VERB_MOVE "move" | 108 #define SKJSONCANVAS_VERB_MOVE "move" |
| 103 #define SKJSONCANVAS_VERB_LINE "line" | 109 #define SKJSONCANVAS_VERB_LINE "line" |
| 104 #define SKJSONCANVAS_VERB_QUAD "quad" | 110 #define SKJSONCANVAS_VERB_QUAD "quad" |
| 105 #define SKJSONCANVAS_VERB_CUBIC "cubic" | 111 #define SKJSONCANVAS_VERB_CUBIC "cubic" |
| 106 #define SKJSONCANVAS_VERB_CONIC "conic" | 112 #define SKJSONCANVAS_VERB_CONIC "conic" |
| 107 #define SKJSONCANVAS_VERB_CLOSE "close" | 113 #define SKJSONCANVAS_VERB_CLOSE "close" |
| 108 | 114 |
| 109 #define SKJSONCANVAS_STYLE_FILL "fill" | 115 #define SKJSONCANVAS_STYLE_FILL "fill" |
| 110 #define SKJSONCANVAS_STYLE_STROKE "stroke" | 116 #define SKJSONCANVAS_STYLE_STROKE "stroke" |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 283 |
| 278 SkWStream& fOut; | 284 SkWStream& fOut; |
| 279 Json::Value fRoot; | 285 Json::Value fRoot; |
| 280 Json::Value fCommands; | 286 Json::Value fCommands; |
| 281 bool fSendBinaries; | 287 bool fSendBinaries; |
| 282 | 288 |
| 283 typedef SkCanvas INHERITED; | 289 typedef SkCanvas INHERITED; |
| 284 }; | 290 }; |
| 285 | 291 |
| 286 #endif | 292 #endif |
| OLD | NEW |