Lines Matching refs:UrlDataManager
164 typedef SkDrawCommand* (*FROM_JSON)(Json::Value&, UrlDataManager&);
223 Json::Value SkDrawCommand::toJSON(UrlDataManager& urlDataManager) const {
231 UrlDataManager& urlDataManager) const {
232 Json::Value result = this->toJSON(urlDataManager);
263 SkDrawCommand* SkDrawCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
302 return (*factory)(command, urlDataManager);
624 UrlDataManager& urlDataManager, Json::Value* target) {
626 SkString url = urlDataManager.addData(data, contentType);
631 UrlDataManager& urlDataManager) {
637 encode_data(data, buffer.bytesWritten(), "application/octet-stream", urlDataManager, &jsonData);
646 UrlDataManager& urlDataManager) {
669 encode_data(encoded->data(), encoded->size(), "image/png", urlDataManager, &jsonData);
711 static Json::ArrayIndex decode_data(Json::Value data, UrlDataManager& urlDataManager,
713 UrlDataManager::UrlData* urlData = urlDataManager.getDataFromUrl(SkString(data.asCString()));
725 UrlDataManager& urlDataManager) {
736 int size = decode_data(jsonFlattenable[SKDEBUGCANVAS_ATTRIBUTE_DATA], urlDataManager, &data);
787 static SkBitmap* load_bitmap(const Json::Value& jsonBitmap, UrlDataManager& urlDataManager) {
793 int size = decode_data(jsonBitmap[SKDEBUGCANVAS_ATTRIBUTE_DATA], urlDataManager, &data);
814 static SkImage* load_image(const Json::Value& jsonImage, UrlDataManager& urlDataManager) {
815 SkBitmap* bitmap = load_bitmap(jsonImage, urlDataManager);
825 UrlDataManager& urlDataManager) {
831 bool success = flatten(*image, target, urlDataManager);
926 UrlDataManager& urlDataManager) {
968 flatten(maskFilter, &jsonMaskFilter, urlDataManager);
975 UrlDataManager& urlDataManager) {
994 flatten(pathEffect, &jsonPathEffect, urlDataManager);
1018 UrlDataManager& urlDataManager) {
1027 encode_data(data, buffer.bytesWritten(), "application/octet-stream", urlDataManager,
1036 UrlDataManager& urlDataManager) {
1040 flatten(shader, &jsonShader, urlDataManager);
1046 UrlDataManager& urlDataManager) {
1050 flatten(xfermode, &jsonXfermode, urlDataManager);
1056 UrlDataManager& urlDataManager) {
1060 flatten(imageFilter, &jsonImageFilter, urlDataManager);
1066 UrlDataManager& urlDataManager) {
1070 flatten(colorFilter, &jsonColorFilter, urlDataManager);
1076 UrlDataManager& urlDataManager) {
1080 flatten(looper, &jsonLooper, urlDataManager);
1085 Json::Value make_json_paint(const SkPaint& paint, UrlDataManager& urlDataManager) {
1102 apply_paint_patheffect(paint, &result, urlDataManager);
1103 apply_paint_maskfilter(paint, &result, urlDataManager);
1104 apply_paint_shader(paint, &result, urlDataManager);
1105 apply_paint_xfermode(paint, &result, urlDataManager);
1106 apply_paint_looper(paint, &result, urlDataManager);
1107 apply_paint_imagefilter(paint, &result, urlDataManager);
1108 apply_paint_colorfilter(paint, &result, urlDataManager);
1109 apply_paint_typeface(paint, &result, urlDataManager);
1127 static void extract_json_paint_shader(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1131 SkShader* shader = (SkShader*) load_flattenable(jsonShader, urlDataManager);
1139 static void extract_json_paint_patheffect(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1143 SkPathEffect* pathEffect = (SkPathEffect*) load_flattenable(jsonPathEffect, urlDataManager);
1151 static void extract_json_paint_maskfilter(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1155 SkMaskFilter* maskFilter = (SkMaskFilter*) load_flattenable(jsonMaskFilter, urlDataManager);
1163 static void extract_json_paint_colorfilter(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1168 urlDataManager);
1176 static void extract_json_paint_xfermode(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1180 SkXfermode* xfermode = (SkXfermode*) load_flattenable(jsonXfermode, urlDataManager);
1188 static void extract_json_paint_looper(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1192 SkDrawLooper* looper = (SkDrawLooper*) load_flattenable(jsonLooper, urlDataManager);
1200 static void extract_json_paint_imagefilter(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1205 urlDataManager);
1213 static void extract_json_paint_typeface(Json::Value& jsonPaint, UrlDataManager& urlDataManager,
1219 Json::ArrayIndex length = decode_data(jsonData, urlDataManager, &data);
1413 static void extract_json_paint(Json::Value& paint, UrlDataManager& urlDataManager,
1416 extract_json_paint_shader(paint, urlDataManager, result);
1417 extract_json_paint_patheffect(paint, urlDataManager, result);
1418 extract_json_paint_maskfilter(paint, urlDataManager, result);
1419 extract_json_paint_colorfilter(paint, urlDataManager, result);
1420 extract_json_paint_xfermode(paint, urlDataManager, result);
1421 extract_json_paint_looper(paint, urlDataManager, result);
1422 extract_json_paint_imagefilter(paint, urlDataManager, result);
1423 extract_json_paint_typeface(paint, urlDataManager, result);
1556 Json::Value SkClearCommand::toJSON(UrlDataManager& urlDataManager) const {
1557 Json::Value result = INHERITED::toJSON(urlDataManager);
1562 SkClearCommand* SkClearCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
1587 Json::Value SkClipPathCommand::toJSON(UrlDataManager& urlDataManager) const {
1588 Json::Value result = INHERITED::toJSON(urlDataManager);
1596 UrlDataManager& urlDataManager) {
1616 Json::Value SkClipRegionCommand::toJSON(UrlDataManager& urlDataManager) const {
1617 Json::Value result = INHERITED::toJSON(urlDataManager);
1624 UrlDataManager& urlDataManager) {
1644 Json::Value SkClipRectCommand::toJSON(UrlDataManager& urlDataManager) const {
1645 Json::Value result = INHERITED::toJSON(urlDataManager);
1653 UrlDataManager& urlDataManager) {
1680 Json::Value SkClipRRectCommand::toJSON(UrlDataManager& urlDataManager) const {
1681 Json::Value result = INHERITED::toJSON(urlDataManager);
1689 UrlDataManager& urlDataManager) {
1708 Json::Value SkConcatCommand::toJSON(UrlDataManager& urlDataManager) const {
1709 Json::Value result = INHERITED::toJSON(urlDataManager);
1714 SkConcatCommand* SkConcatCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
1750 Json::Value SkDrawBitmapCommand::toJSON(UrlDataManager& urlDataManager) const {
1751 Json::Value result = INHERITED::toJSON(urlDataManager);
1753 if (flatten(fBitmap, &encoded, urlDataManager)) {
1758 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(*fPaintPtr, urlDataManager);
1765 UrlDataManager& urlDataManager) {
1766 SkBitmap* bitmap = load_bitmap(command[SKDEBUGCANVAS_ATTRIBUTE_BITMAP], urlDataManager);
1774 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
1817 Json::Value SkDrawBitmapNineCommand::toJSON(UrlDataManager& urlDataManager) const {
1818 Json::Value result = INHERITED::toJSON(urlDataManager);
1820 if (flatten(fBitmap, &encoded, urlDataManager)) {
1825 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(*fPaintPtr, urlDataManager);
1832 UrlDataManager& urlDataManager) {
1833 SkBitmap* bitmap = load_bitmap(command[SKDEBUGCANVAS_ATTRIBUTE_BITMAP], urlDataManager);
1844 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
1895 Json::Value SkDrawBitmapRectCommand::toJSON(UrlDataManager& urlDataManager) const {
1896 Json::Value result = INHERITED::toJSON(urlDataManager);
1898 if (flatten(fBitmap, &encoded, urlDataManager)) {
1905 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(*fPaintPtr, urlDataManager);
1915 UrlDataManager& urlDataManager) {
1916 SkBitmap* bitmap = load_bitmap(command[SKDEBUGCANVAS_ATTRIBUTE_BITMAP], urlDataManager);
1925 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
1986 Json::Value SkDrawImageCommand::toJSON(UrlDataManager& urlDataManager) const {
1987 Json::Value result = INHERITED::toJSON(urlDataManager);
1989 if (flatten(*fImage, &encoded, urlDataManager)) {
1993 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(*fPaint.get(), urlDataManager);
2000 UrlDataManager& urlDataManager) {
2001 SkImage* image = load_image(command[SKDEBUGCANVAS_ATTRIBUTE_IMAGE], urlDataManager);
2009 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2063 Json::Value SkDrawImageRectCommand::toJSON(UrlDataManager& urlDataManager) const {
2064 Json::Value result = INHERITED::toJSON(urlDataManager);
2066 if (flatten(*fImage.get(), &encoded, urlDataManager)) {
2073 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(*fPaint.get(), urlDataManager);
2083 UrlDataManager& urlDataManager) {
2084 SkImage* image = load_image(command[SKDEBUGCANVAS_ATTRIBUTE_IMAGE], urlDataManager);
2093 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2151 Json::Value SkDrawOvalCommand::toJSON(UrlDataManager& urlDataManager) const {
2152 Json::Value result = INHERITED::toJSON(urlDataManager);
2154 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2159 UrlDataManager& urlDataManager) {
2163 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2184 Json::Value SkDrawPaintCommand::toJSON(UrlDataManager& urlDataManager) const {
2185 Json::Value result = INHERITED::toJSON(urlDataManager);
2186 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2191 UrlDataManager& urlDataManager) {
2193 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2215 Json::Value SkDrawPathCommand::toJSON(UrlDataManager& urlDataManager) const {
2216 Json::Value result = INHERITED::toJSON(urlDataManager);
2218 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2223 UrlDataManager& urlDataManager) {
2227 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2337 Json::Value SkDrawPointsCommand::toJSON(UrlDataManager& urlDataManager) const {
2338 Json::Value result = INHERITED::toJSON(urlDataManager);
2345 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2350 UrlDataManager& urlDataManager) {
2373 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2403 Json::Value SkDrawPosTextCommand::toJSON(UrlDataManager& urlDataManager) const {
2404 Json::Value result = INHERITED::toJSON(urlDataManager);
2412 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2417 UrlDataManager& urlDataManager) {
2420 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2519 Json::Value SkDrawTextBlobCommand::toJSON(UrlDataManager& urlDataManager) const {
2520 Json::Value result = INHERITED::toJSON(urlDataManager);
2549 run[SKDEBUGCANVAS_ATTRIBUTE_FONT] = make_json_paint(fontPaint, urlDataManager);
2557 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2562 UrlDataManager& urlDataManager) {
2569 extract_json_paint(run[SKDEBUGCANVAS_ATTRIBUTE_FONT], urlDataManager, &font);
2603 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2636 Json::Value SkDrawPatchCommand::toJSON(UrlDataManager& urlDataManager) const {
2637 Json::Value result = INHERITED::toJSON(urlDataManager);
2659 flatten(fXfermode, &jsonXfermode, urlDataManager);
2666 UrlDataManager& urlDataManager) {
2699 xfermode.reset((SkXfermode*) load_flattenable(jsonXfermode, urlDataManager));
2702 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2719 Json::Value SkDrawRectCommand::toJSON(UrlDataManager& urlDataManager) const {
2720 Json::Value result = INHERITED::toJSON(urlDataManager);
2722 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2727 UrlDataManager& urlDataManager) {
2731 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2753 Json::Value SkDrawRRectCommand::toJSON(UrlDataManager& urlDataManager) const {
2754 Json::Value result = INHERITED::toJSON(urlDataManager);
2756 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2761 UrlDataManager& urlDataManager) {
2765 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2791 Json::Value SkDrawDRRectCommand::toJSON(UrlDataManager& urlDataManager) const {
2792 Json::Value result = INHERITED::toJSON(urlDataManager);
2795 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2800 UrlDataManager& urlDataManager) {
2806 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2830 Json::Value SkDrawTextCommand::toJSON(UrlDataManager& urlDataManager) const {
2831 Json::Value result = INHERITED::toJSON(urlDataManager);
2836 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2841 UrlDataManager& urlDataManager) {
2844 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2879 Json::Value SkDrawTextOnPathCommand::toJSON(UrlDataManager& urlDataManager) const {
2880 Json::Value result = INHERITED::toJSON(urlDataManager);
2888 result[SKDEBUGCANVAS_ATTRIBUTE_PAINT] = make_json_paint(fPaint, urlDataManager);
2893 UrlDataManager& urlDataManager) {
2896 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
2981 SkRestoreCommand* SkRestoreCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
2993 SkSaveCommand* SkSaveCommand::fromJSON(Json::Value& command, UrlDataManager& urlDataManager) {
3045 Json::Value SkSaveLayerCommand::toJSON(UrlDataManager& urlDataManager) const {
3046 Json::Value result = INHERITED::toJSON(urlDataManager);
3052 urlDataManager);
3056 flatten(fBackdrop, &jsonBackdrop, urlDataManager);
3067 UrlDataManager& urlDataManager) {
3076 extract_json_paint(command[SKDEBUGCANVAS_ATTRIBUTE_PAINT], urlDataManager, &paint);
3081 rec.fBackdrop = (SkImageFilter*) load_flattenable(backdrop, urlDataManager);
3106 Json::Value SkSetMatrixCommand::toJSON(UrlDataManager& urlDataManager) const {
3107 Json::Value result = INHERITED::toJSON(urlDataManager);
3113 UrlDataManager& urlDataManager) {