Lines Matching refs:Json
23 void getPaint(Json::Value& paint, SkPaint* result);
25 void getRect(Json::Value& rect, SkRect* result);
27 void getRRect(Json::Value& rrect, SkRRect* result);
29 void getPath(Json::Value& path, SkPath* result);
31 void getMatrix(Json::Value& matrix, SkMatrix* result);
33 SkRegion::Op getRegionOp(Json::Value& op);
35 void processCommand(Json::Value& command, SkCanvas* target);
37 void processTranslate(Json::Value& command, SkCanvas* target);
39 void processScale(Json::Value& command, SkCanvas* target);
41 void processMatrix(Json::Value& command, SkCanvas* target);
43 void processSave(Json::Value& command, SkCanvas* target);
45 void processRestore(Json::Value& command, SkCanvas* target);
47 void processSaveLayer(Json::Value& command, SkCanvas* target);
49 void processPaint(Json::Value& command, SkCanvas* target);
51 void processRect(Json::Value& command, SkCanvas* target);
53 void processRRect(Json::Value& command, SkCanvas* target);
55 void processOval(Json::Value& command, SkCanvas* target);
57 void processPath(Json::Value& command, SkCanvas* target);
59 void processText(Json::Value& command, SkCanvas* target);
61 void processPosText(Json::Value& command, SkCanvas* target);
63 void processTextOnPath(Json::Value& command, SkCanvas* target);
65 void processTextBlob(Json::Value& command, SkCanvas* target);
67 void processPoints(Json::Value& command, SkCanvas* target);
69 void processImage(Json::Value& command, SkCanvas* target);
71 void processImageRect(Json::Value& command, SkCanvas* target);
73 void processBitmap(Json::Value& command, SkCanvas* target);
75 void processBitmapRect(Json::Value& command, SkCanvas* target);
77 void processClipRect(Json::Value& command, SkCanvas* target);
79 void processClipRRect(Json::Value& command, SkCanvas* target);
81 void processClipPath(Json::Value& command, SkCanvas* target);
84 void Renderer::processCommand(Json::Value& command, SkCanvas* target) { in processCommand()
161 static void apply_paint_color(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_color()
163 Json::Value color = jsonPaint[SKJSONCANVAS_ATTRIBUTE_COLOR]; in apply_paint_color()
170 static Json::ArrayIndex decode_data(Json::Value bytes, void** target) { in decode_data()
171 Json::ArrayIndex size = bytes.size(); in decode_data()
173 for (Json::ArrayIndex i = 0; i < size; i++) { in decode_data()
179 static SkFlattenable* load_flattenable(Json::Value jsonFlattenable) { in load_flattenable()
242 static SkBitmap* load_bitmap(const Json::Value& jsonBitmap) { in load_bitmap()
271 static SkImage* load_image(const Json::Value& jsonImage) { in load_image()
281 static void apply_paint_shader(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_shader()
283 Json::Value jsonShader = jsonPaint[SKJSONCANVAS_ATTRIBUTE_SHADER]; in apply_paint_shader()
292 static void apply_paint_patheffect(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_patheffect()
294 Json::Value jsonPathEffect = jsonPaint[SKJSONCANVAS_ATTRIBUTE_PATHEFFECT]; in apply_paint_patheffect()
303 static void apply_paint_maskfilter(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_maskfilter()
305 Json::Value jsonMaskFilter = jsonPaint[SKJSONCANVAS_ATTRIBUTE_MASKFILTER]; in apply_paint_maskfilter()
314 static void apply_paint_colorfilter(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_colorfilter()
316 Json::Value jsonColorFilter = jsonPaint[SKJSONCANVAS_ATTRIBUTE_COLORFILTER]; in apply_paint_colorfilter()
325 static void apply_paint_xfermode(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_xfermode()
327 Json::Value jsonXfermode = jsonPaint[SKJSONCANVAS_ATTRIBUTE_XFERMODE]; in apply_paint_xfermode()
336 static void apply_paint_imagefilter(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_imagefilter()
338 Json::Value jsonImageFilter = jsonPaint[SKJSONCANVAS_ATTRIBUTE_IMAGEFILTER]; in apply_paint_imagefilter()
347 static void apply_paint_style(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_style()
362 static void apply_paint_strokewidth(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_strokewidth()
369 static void apply_paint_strokemiter(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_strokemiter()
376 static void apply_paint_cap(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_cap()
391 static void apply_paint_antialias(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_antialias()
397 static void apply_paint_blur(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_blur()
399 Json::Value blur = jsonPaint[SKJSONCANVAS_ATTRIBUTE_BLUR]; in apply_paint_blur()
435 static void apply_paint_dashing(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_dashing()
437 Json::Value dash = jsonPaint[SKJSONCANVAS_ATTRIBUTE_DASHING]; in apply_paint_dashing()
438 Json::Value jsonIntervals = dash[SKJSONCANVAS_ATTRIBUTE_INTERVALS]; in apply_paint_dashing()
439 Json::ArrayIndex count = jsonIntervals.size(); in apply_paint_dashing()
441 for (Json::ArrayIndex i = 0; i < count; i++) { in apply_paint_dashing()
450 static void apply_paint_textalign(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_textalign()
471 static void apply_paint_textsize(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_textsize()
478 static void apply_paint_textscalex(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_textscalex()
485 static void apply_paint_textskewx(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_textskewx()
492 static void apply_paint_typeface(Json::Value& jsonPaint, SkPaint* target) { in apply_paint_typeface()
494 Json::Value jsonTypeface = jsonPaint[SKJSONCANVAS_ATTRIBUTE_TYPEFACE]; in apply_paint_typeface()
495 Json::Value bytes = jsonTypeface[SKJSONCANVAS_ATTRIBUTE_BYTES]; in apply_paint_typeface()
497 Json::ArrayIndex length = decode_data(bytes, &data); in apply_paint_typeface()
505 void Renderer::getPaint(Json::Value& paint, SkPaint* result) { in getPaint()
527 void Renderer::getRect(Json::Value& rect, SkRect* result) { in getRect()
531 void Renderer::getRRect(Json::Value& rrect, SkRRect* result) { in getRRect()
543 void Renderer::getMatrix(Json::Value& matrix, SkMatrix* result) { in getMatrix()
552 void Renderer::getPath(Json::Value& path, SkPath* result) { in getPath()
566 Json::Value verbs = path[SKJSONCANVAS_ATTRIBUTE_VERBS]; in getPath()
567 for (Json::ArrayIndex i = 0; i < verbs.size(); i++) { in getPath()
568 Json::Value verb = verbs[i]; in getPath()
575 Json::Value move = verb[SKJSONCANVAS_VERB_MOVE]; in getPath()
579 Json::Value line = verb[SKJSONCANVAS_VERB_LINE]; in getPath()
583 Json::Value quad = verb[SKJSONCANVAS_VERB_QUAD]; in getPath()
588 Json::Value cubic = verb[SKJSONCANVAS_VERB_CUBIC]; in getPath()
594 Json::Value conic = verb[SKJSONCANVAS_VERB_CONIC]; in getPath()
606 SkRegion::Op Renderer::getRegionOp(Json::Value& jsonOp) { in getRegionOp()
630 void Renderer::processTranslate(Json::Value& command, SkCanvas* target) { in processTranslate()
635 void Renderer::processScale(Json::Value& command, SkCanvas* target) { in processScale()
640 void Renderer::processMatrix(Json::Value& command, SkCanvas* target) { in processMatrix()
646 void Renderer::processSave(Json::Value& command, SkCanvas* target) { in processSave()
650 void Renderer::processRestore(Json::Value& command, SkCanvas* target) { in processRestore()
654 void Renderer::processSaveLayer(Json::Value& command, SkCanvas* target) { in processSaveLayer()
675 void Renderer::processPaint(Json::Value& command, SkCanvas* target) { in processPaint()
681 void Renderer::processRect(Json::Value& command, SkCanvas* target) { in processRect()
689 void Renderer::processRRect(Json::Value& command, SkCanvas* target) { in processRRect()
697 void Renderer::processOval(Json::Value& command, SkCanvas* target) { in processOval()
705 void Renderer::processPath(Json::Value& command, SkCanvas* target) { in processPath()
713 void Renderer::processText(Json::Value& command, SkCanvas* target) { in processText()
717 Json::Value coords = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processText()
721 void Renderer::processPosText(Json::Value& command, SkCanvas* target) { in processPosText()
725 Json::Value coords = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processPosText()
735 void Renderer::processTextOnPath(Json::Value& command, SkCanvas* target) { in processTextOnPath()
753 void Renderer::processTextBlob(Json::Value& command, SkCanvas* target) { in processTextBlob()
755 Json::Value runs = command[SKJSONCANVAS_ATTRIBUTE_RUNS]; in processTextBlob()
756 for (Json::ArrayIndex i = 0 ; i < runs.size(); i++) { in processTextBlob()
757 Json::Value run = runs[i]; in processTextBlob()
761 Json::Value glyphs = run[SKJSONCANVAS_ATTRIBUTE_GLYPHS]; in processTextBlob()
763 Json::Value coords = run[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processTextBlob()
767 Json::Value positions = run[SKJSONCANVAS_ATTRIBUTE_POSITIONS]; in processTextBlob()
798 void Renderer::processPoints(Json::Value& command, SkCanvas* target) { in processPoints()
814 Json::Value jsonPoints = command[SKJSONCANVAS_ATTRIBUTE_POINTS]; in processPoints()
826 void Renderer::processClipRect(Json::Value& command, SkCanvas* target) { in processClipRect()
833 void Renderer::processClipRRect(Json::Value& command, SkCanvas* target) { in processClipRRect()
840 void Renderer::processClipPath(Json::Value& command, SkCanvas* target) { in processClipPath()
847 void Renderer::processImage(Json::Value& command, SkCanvas* target) { in processImage()
852 Json::Value point = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processImage()
866 void Renderer::processImageRect(Json::Value& command, SkCanvas* target) { in processImageRect()
901 void Renderer::processBitmap(Json::Value& command, SkCanvas* target) { in processBitmap()
906 Json::Value point = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processBitmap()
920 void Renderer::processBitmapRect(Json::Value& command, SkCanvas* target) { in processBitmapRect()
957 Json::Reader reader; in render()
958 Json::Value root; in render()
961 Json::Value commands = root[SKJSONCANVAS_COMMANDS]; in render()
962 for (Json::ArrayIndex i = 0; i < commands.size(); i++) { in render()