Lines Matching refs:Value
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) {
161 static void apply_paint_color(Json::Value& jsonPaint, SkPaint* target) {
163 Json::Value color = jsonPaint[SKJSONCANVAS_ATTRIBUTE_COLOR];
170 static Json::ArrayIndex decode_data(Json::Value bytes, void** target) {
179 static SkFlattenable* load_flattenable(Json::Value jsonFlattenable) {
241 // caller is responsible for freeing return value
242 static SkBitmap* load_bitmap(const Json::Value& jsonBitmap) {
271 static SkImage* load_image(const Json::Value& jsonImage) {
281 static void apply_paint_shader(Json::Value& jsonPaint, SkPaint* target) {
283 Json::Value jsonShader = jsonPaint[SKJSONCANVAS_ATTRIBUTE_SHADER];
292 static void apply_paint_patheffect(Json::Value& jsonPaint, SkPaint* target) {
294 Json::Value jsonPathEffect = jsonPaint[SKJSONCANVAS_ATTRIBUTE_PATHEFFECT];
303 static void apply_paint_maskfilter(Json::Value& jsonPaint, SkPaint* target) {
305 Json::Value jsonMaskFilter = jsonPaint[SKJSONCANVAS_ATTRIBUTE_MASKFILTER];
314 static void apply_paint_colorfilter(Json::Value& jsonPaint, SkPaint* target) {
316 Json::Value jsonColorFilter = jsonPaint[SKJSONCANVAS_ATTRIBUTE_COLORFILTER];
325 static void apply_paint_xfermode(Json::Value& jsonPaint, SkPaint* target) {
327 Json::Value jsonXfermode = jsonPaint[SKJSONCANVAS_ATTRIBUTE_XFERMODE];
336 static void apply_paint_imagefilter(Json::Value& jsonPaint, SkPaint* target) {
338 Json::Value jsonImageFilter = jsonPaint[SKJSONCANVAS_ATTRIBUTE_IMAGEFILTER];
347 static void apply_paint_style(Json::Value& jsonPaint, SkPaint* target) {
362 static void apply_paint_strokewidth(Json::Value& jsonPaint, SkPaint* target) {
369 static void apply_paint_strokemiter(Json::Value& jsonPaint, SkPaint* target) {
376 static void apply_paint_cap(Json::Value& jsonPaint, SkPaint* target) {
391 static void apply_paint_antialias(Json::Value& jsonPaint, SkPaint* target) {
397 static void apply_paint_blur(Json::Value& jsonPaint, SkPaint* target) {
399 Json::Value blur = jsonPaint[SKJSONCANVAS_ATTRIBUTE_BLUR];
435 static void apply_paint_dashing(Json::Value& jsonPaint, SkPaint* target) {
437 Json::Value dash = jsonPaint[SKJSONCANVAS_ATTRIBUTE_DASHING];
438 Json::Value jsonIntervals = dash[SKJSONCANVAS_ATTRIBUTE_INTERVALS];
450 static void apply_paint_textalign(Json::Value& jsonPaint, SkPaint* target) {
471 static void apply_paint_textsize(Json::Value& jsonPaint, SkPaint* target) {
478 static void apply_paint_textscalex(Json::Value& jsonPaint, SkPaint* target) {
485 static void apply_paint_textskewx(Json::Value& jsonPaint, SkPaint* target) {
492 static void apply_paint_typeface(Json::Value& jsonPaint, SkPaint* target) {
494 Json::Value jsonTypeface = jsonPaint[SKJSONCANVAS_ATTRIBUTE_TYPEFACE];
495 Json::Value bytes = jsonTypeface[SKJSONCANVAS_ATTRIBUTE_BYTES];
505 void Renderer::getPaint(Json::Value& paint, SkPaint* result) {
527 void Renderer::getRect(Json::Value& rect, SkRect* result) {
531 void Renderer::getRRect(Json::Value& rrect, SkRRect* result) {
543 void Renderer::getMatrix(Json::Value& matrix, SkMatrix* result) {
552 void Renderer::getPath(Json::Value& path, SkPath* result) {
566 Json::Value verbs = path[SKJSONCANVAS_ATTRIBUTE_VERBS];
568 Json::Value verb = verbs[i];
575 Json::Value move = verb[SKJSONCANVAS_VERB_MOVE];
579 Json::Value line = verb[SKJSONCANVAS_VERB_LINE];
583 Json::Value quad = verb[SKJSONCANVAS_VERB_QUAD];
588 Json::Value cubic = verb[SKJSONCANVAS_VERB_CUBIC];
594 Json::Value conic = verb[SKJSONCANVAS_VERB_CONIC];
606 SkRegion::Op Renderer::getRegionOp(Json::Value& jsonOp) {
630 void Renderer::processTranslate(Json::Value& command, SkCanvas* target) {
635 void Renderer::processScale(Json::Value& command, SkCanvas* target) {
640 void Renderer::processMatrix(Json::Value& command, SkCanvas* target) {
646 void Renderer::processSave(Json::Value& command, SkCanvas* target) {
650 void Renderer::processRestore(Json::Value& command, SkCanvas* target) {
654 void Renderer::processSaveLayer(Json::Value& command, SkCanvas* target) {
675 void Renderer::processPaint(Json::Value& command, SkCanvas* target) {
681 void Renderer::processRect(Json::Value& command, SkCanvas* target) {
689 void Renderer::processRRect(Json::Value& command, SkCanvas* target) {
697 void Renderer::processOval(Json::Value& command, SkCanvas* target) {
705 void Renderer::processPath(Json::Value& command, SkCanvas* target) {
713 void Renderer::processText(Json::Value& command, SkCanvas* target) {
717 Json::Value coords = command[SKJSONCANVAS_ATTRIBUTE_COORDS];
721 void Renderer::processPosText(Json::Value& command, SkCanvas* target) {
725 Json::Value coords = command[SKJSONCANVAS_ATTRIBUTE_COORDS];
735 void Renderer::processTextOnPath(Json::Value& command, SkCanvas* target) {
753 void Renderer::processTextBlob(Json::Value& command, SkCanvas* target) {
755 Json::Value runs = command[SKJSONCANVAS_ATTRIBUTE_RUNS];
757 Json::Value run = runs[i];
761 Json::Value glyphs = run[SKJSONCANVAS_ATTRIBUTE_GLYPHS];
763 Json::Value coords = run[SKJSONCANVAS_ATTRIBUTE_COORDS];
767 Json::Value positions = run[SKJSONCANVAS_ATTRIBUTE_POSITIONS];
798 void Renderer::processPoints(Json::Value& command, SkCanvas* target) {
814 Json::Value jsonPoints = command[SKJSONCANVAS_ATTRIBUTE_POINTS];
826 void Renderer::processClipRect(Json::Value& command, SkCanvas* target) {
833 void Renderer::processClipRRect(Json::Value& command, SkCanvas* target) {
840 void Renderer::processClipPath(Json::Value& command, SkCanvas* target) {
847 void Renderer::processImage(Json::Value& command, SkCanvas* target) {
852 Json::Value point = command[SKJSONCANVAS_ATTRIBUTE_COORDS];
866 void Renderer::processImageRect(Json::Value& command, SkCanvas* target) {
901 void Renderer::processBitmap(Json::Value& command, SkCanvas* target) {
906 Json::Value point = command[SKJSONCANVAS_ATTRIBUTE_COORDS];
920 void Renderer::processBitmapRect(Json::Value& command, SkCanvas* target) {
958 Json::Value root;
961 Json::Value commands = root[SKJSONCANVAS_COMMANDS];