Lines Matching refs:command

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() argument
85 const char* name = command[SKJSONCANVAS_COMMAND].asCString(); in processCommand()
88 this->processTranslate(command, target); in processCommand()
91 this->processScale(command, target); in processCommand()
94 this->processMatrix(command, target); in processCommand()
97 this->processSave(command, target); in processCommand()
100 this->processRestore(command, target); in processCommand()
103 this->processSaveLayer(command, target); in processCommand()
106 this->processPaint(command, target); in processCommand()
109 this->processRect(command, target); in processCommand()
112 this->processRRect(command, target); in processCommand()
115 this->processOval(command, target); in processCommand()
118 this->processPath(command, target); in processCommand()
121 this->processText(command, target); in processCommand()
124 this->processPosText(command, target); in processCommand()
127 this->processTextOnPath(command, target); in processCommand()
130 this->processTextBlob(command, target); in processCommand()
133 this->processPoints(command, target); in processCommand()
136 this->processImage(command, target); in processCommand()
139 this->processImageRect(command, target); in processCommand()
142 this->processBitmap(command, target); in processCommand()
145 this->processBitmapRect(command, target); in processCommand()
148 this->processClipRect(command, target); in processCommand()
151 this->processClipRRect(command, target); in processCommand()
154 this->processClipPath(command, target); in processCommand()
630 void Renderer::processTranslate(Json::Value& command, SkCanvas* target) { in processTranslate() argument
631 target->translate(command[SKJSONCANVAS_ATTRIBUTE_X].asFloat(), in processTranslate()
632 command[SKJSONCANVAS_ATTRIBUTE_Y].asFloat()); in processTranslate()
635 void Renderer::processScale(Json::Value& command, SkCanvas* target) { in processScale() argument
636 target->scale(command[SKJSONCANVAS_ATTRIBUTE_X].asFloat(), in processScale()
637 command[SKJSONCANVAS_ATTRIBUTE_Y].asFloat()); in processScale()
640 void Renderer::processMatrix(Json::Value& command, SkCanvas* target) { in processMatrix() argument
642 this->getMatrix(command[SKJSONCANVAS_ATTRIBUTE_MATRIX], &matrix); in processMatrix()
646 void Renderer::processSave(Json::Value& command, SkCanvas* target) { in processSave() argument
650 void Renderer::processRestore(Json::Value& command, SkCanvas* target) { in processRestore() argument
654 void Renderer::processSaveLayer(Json::Value& command, SkCanvas* target) { in processSaveLayer() argument
657 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_BOUNDS)) { in processSaveLayer()
658 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_BOUNDS], &bounds); in processSaveLayer()
662 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_PAINT)) { in processSaveLayer()
663 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processSaveLayer()
666 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_BACKDROP)) { in processSaveLayer()
667 rec.fBackdrop = (SkImageFilter*) load_flattenable(command[SKJSONCANVAS_ATTRIBUTE_BACKDROP]); in processSaveLayer()
675 void Renderer::processPaint(Json::Value& command, SkCanvas* target) { in processPaint() argument
677 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processPaint()
681 void Renderer::processRect(Json::Value& command, SkCanvas* target) { in processRect() argument
683 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_COORDS], &rect); in processRect()
685 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processRect()
689 void Renderer::processRRect(Json::Value& command, SkCanvas* target) { in processRRect() argument
691 this->getRRect(command[SKJSONCANVAS_ATTRIBUTE_COORDS], &rrect); in processRRect()
693 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processRRect()
697 void Renderer::processOval(Json::Value& command, SkCanvas* target) { in processOval() argument
699 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_COORDS], &rect); in processOval()
701 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processOval()
705 void Renderer::processPath(Json::Value& command, SkCanvas* target) { in processPath() argument
707 this->getPath(command[SKJSONCANVAS_ATTRIBUTE_PATH], &path); in processPath()
709 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processPath()
713 void Renderer::processText(Json::Value& command, SkCanvas* target) { in processText() argument
714 const char* text = command[SKJSONCANVAS_ATTRIBUTE_TEXT].asCString(); in processText()
716 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processText()
717 Json::Value coords = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processText()
721 void Renderer::processPosText(Json::Value& command, SkCanvas* target) { in processPosText() argument
722 const char* text = command[SKJSONCANVAS_ATTRIBUTE_TEXT].asCString(); in processPosText()
724 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processPosText()
725 Json::Value coords = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processPosText()
735 void Renderer::processTextOnPath(Json::Value& command, SkCanvas* target) { in processTextOnPath() argument
736 const char* text = command[SKJSONCANVAS_ATTRIBUTE_TEXT].asCString(); in processTextOnPath()
738 this->getPath(command[SKJSONCANVAS_ATTRIBUTE_PATH], &path); in processTextOnPath()
741 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_MATRIX)) { in processTextOnPath()
742 this->getMatrix(command[SKJSONCANVAS_ATTRIBUTE_MATRIX], &matrix); in processTextOnPath()
749 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processTextOnPath()
753 void Renderer::processTextBlob(Json::Value& command, SkCanvas* target) { in processTextBlob() argument
755 Json::Value runs = command[SKJSONCANVAS_ATTRIBUTE_RUNS]; in processTextBlob()
791 SkScalar x = command[SKJSONCANVAS_ATTRIBUTE_X].asFloat(); in processTextBlob()
792 SkScalar y = command[SKJSONCANVAS_ATTRIBUTE_Y].asFloat(); in processTextBlob()
794 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processTextBlob()
798 void Renderer::processPoints(Json::Value& command, SkCanvas* target) { in processPoints() argument
800 const char* jsonMode = command[SKJSONCANVAS_ATTRIBUTE_MODE].asCString(); in processPoints()
814 Json::Value jsonPoints = command[SKJSONCANVAS_ATTRIBUTE_POINTS]; in processPoints()
821 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processPoints()
826 void Renderer::processClipRect(Json::Value& command, SkCanvas* target) { in processClipRect() argument
828 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_COORDS], &rect); in processClipRect()
829 target->clipRect(rect, this->getRegionOp(command[SKJSONCANVAS_ATTRIBUTE_REGIONOP]), in processClipRect()
830 command[SKJSONCANVAS_ATTRIBUTE_ANTIALIAS].asBool()); in processClipRect()
833 void Renderer::processClipRRect(Json::Value& command, SkCanvas* target) { in processClipRRect() argument
835 this->getRRect(command[SKJSONCANVAS_ATTRIBUTE_COORDS], &rrect); in processClipRRect()
836 target->clipRRect(rrect, this->getRegionOp(command[SKJSONCANVAS_ATTRIBUTE_REGIONOP]), in processClipRRect()
837 command[SKJSONCANVAS_ATTRIBUTE_ANTIALIAS].asBool()); in processClipRRect()
840 void Renderer::processClipPath(Json::Value& command, SkCanvas* target) { in processClipPath() argument
842 this->getPath(command[SKJSONCANVAS_ATTRIBUTE_PATH], &path); in processClipPath()
843 target->clipPath(path, this->getRegionOp(command[SKJSONCANVAS_ATTRIBUTE_REGIONOP]), in processClipPath()
844 command[SKJSONCANVAS_ATTRIBUTE_ANTIALIAS].asBool()); in processClipPath()
847 void Renderer::processImage(Json::Value& command, SkCanvas* target) { in processImage() argument
848 SkImage* image = load_image(command[SKJSONCANVAS_ATTRIBUTE_IMAGE]); in processImage()
852 Json::Value point = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processImage()
855 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_PAINT)) { in processImage()
856 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processImage()
866 void Renderer::processImageRect(Json::Value& command, SkCanvas* target) { in processImageRect() argument
867 SkImage* image = load_image(command[SKJSONCANVAS_ATTRIBUTE_IMAGE]); in processImageRect()
872 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_DST], &dst); in processImageRect()
875 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_PAINT)) { in processImageRect()
876 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processImageRect()
883 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_STRICT) && in processImageRect()
884 command[SKJSONCANVAS_ATTRIBUTE_STRICT].asBool()) { in processImageRect()
890 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_SRC)) { in processImageRect()
892 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_SRC], &src); in processImageRect()
901 void Renderer::processBitmap(Json::Value& command, SkCanvas* target) { in processBitmap() argument
902 SkImage* image = load_image(command[SKJSONCANVAS_ATTRIBUTE_BITMAP]); in processBitmap()
906 Json::Value point = command[SKJSONCANVAS_ATTRIBUTE_COORDS]; in processBitmap()
909 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_PAINT)) { in processBitmap()
910 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processBitmap()
920 void Renderer::processBitmapRect(Json::Value& command, SkCanvas* target) { in processBitmapRect() argument
921 SkBitmap* bitmap = load_bitmap(command[SKJSONCANVAS_ATTRIBUTE_BITMAP]); in processBitmapRect()
926 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_DST], &dst); in processBitmapRect()
929 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_PAINT)) { in processBitmapRect()
930 this->getPaint(command[SKJSONCANVAS_ATTRIBUTE_PAINT], &paint); in processBitmapRect()
937 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_STRICT) && in processBitmapRect()
938 command[SKJSONCANVAS_ATTRIBUTE_STRICT].asBool()) { in processBitmapRect()
944 if (command.isMember(SKJSONCANVAS_ATTRIBUTE_SRC)) { in processBitmapRect()
946 this->getRect(command[SKJSONCANVAS_ATTRIBUTE_SRC], &src); in processBitmapRect()