• Home
  • Raw
  • Download

Lines Matching refs:urlDataManager

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