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

Unified Diff: tools/debugger/SkDebugCanvas.h

Issue 1690023004: added clip visualization to skiaserve (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixed copy-paste error 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 9a4a9d603bd61c9ad4d0938b65049ea0fa8c1f65..ac2f0d420765aae528a6c72972854daada06adf5 100644
--- a/tools/debugger/SkDebugCanvas.h
+++ b/tools/debugger/SkDebugCanvas.h
@@ -37,6 +37,12 @@ public:
void setOverdrawViz(bool overdrawViz);
bool getOverdrawViz() const { return fOverdrawViz; }
+ /**
+ * Set the color of the clip visualization. An alpha of zero renders the clip invisible.
+ */
+ void setClipVizColor(SkColor clipVizColor) { this->fClipVizColor = clipVizColor; }
+ SkColor getClipVizColor() const { return fClipVizColor; }
+
bool getAllowSimplifyClip() const { return fAllowSimplifyClip; }
void setPicture(SkPicture* picture) { fPicture = picture; }
@@ -141,9 +147,9 @@ public:
SkString clipStackData() const { return fClipStackData; }
/**
- Returns a JSON object representing up to N draws, where N is <= SkDebugCanvas::getSize().
- The encoder may use the UrlDataManager to store binary data such as images, referring to
- them via URLs embedded in the JSON.
+ Returns a JSON object representing up to the Nth draw, where N is less than
+ SkDebugCanvas::getSize(). 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, int n);
@@ -238,6 +244,7 @@ private:
bool fOverdrawViz;
bool fOverrideFilterQuality;
SkFilterQuality fFilterQuality;
+ SkColor fClipVizColor;
SkAutoTUnref<SkNWayCanvas> fPaintFilterCanvas;
« 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