Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(906)

Unified Diff: tools/debugger/SkDebugCanvas.h

Issue 1684233002: added SkDebugCanvas::toJSON (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: constantified everything Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/debugger/SkDebugCanvas.h
diff --git a/tools/debugger/SkDebugCanvas.h b/tools/debugger/SkDebugCanvas.h
index 217b52e3ce9e77d8b30c6e257bc9dba7ec0e0008..505b5c79fac684447feb36cb6b678df19911c0bd 100644
--- a/tools/debugger/SkDebugCanvas.h
+++ b/tools/debugger/SkDebugCanvas.h
@@ -17,6 +17,7 @@
#include "SkPicture.h"
#include "SkString.h"
#include "SkTArray.h"
+#include "UrlDataManager.h"
class SkNWayCanvas;
@@ -139,6 +140,12 @@ public:
SkString clipStackData() const { return fClipStackData; }
+ /**
+ Returns a JSON object representing all of the draws. The encoder may use the UrlDataManager
+ to store binary data such as images, referring to them via URLs embedded in the JSON.
+ */
+ Json::Value toJSON(UrlDataManager& urlDataManager);
+
////////////////////////////////////////////////////////////////////////////////
// Inherited from SkCanvas
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | tools/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698