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

Unified Diff: src/utils/debugger/SkDebugCanvas.h

Issue 1032173002: Add a paint filter utility canvas (SkPaintFilterCanvas) (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: rebased Created 5 years, 9 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 | « src/utils/SkPaintFilterCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDebugCanvas.h
diff --git a/src/utils/debugger/SkDebugCanvas.h b/src/utils/debugger/SkDebugCanvas.h
index 66b85fc38f2f4e4534035f32d741cff78ad43f5b..35dd6fb92d6bc996efb2a96e2f01a0c2d7b077f9 100644
--- a/src/utils/debugger/SkDebugCanvas.h
+++ b/src/utils/debugger/SkDebugCanvas.h
@@ -17,7 +17,7 @@
#include "SkTArray.h"
#include "SkString.h"
-class SkTexOverrideFilter;
+class SkNWayCanvas;
class SK_API SkDebugCanvas : public SkCanvas {
public:
@@ -32,7 +32,7 @@ public:
/**
* Enable or disable overdraw visualization
*/
- void setOverdrawViz(bool overdrawViz) { fOverdrawViz = overdrawViz; }
+ void setOverdrawViz(bool overdrawViz);
bool getOverdrawViz() const { return fOverdrawViz; }
bool getAllowSimplifyClip() const { return fAllowSimplifyClip; }
@@ -232,10 +232,10 @@ private:
SkPath fSaveDevPath;
bool fOverdrawViz;
- SkDrawFilter* fOverdrawFilter;
+ bool fOverrideFilterQuality;
+ SkFilterQuality fFilterQuality;
- bool fOverrideTexFiltering;
- SkTexOverrideFilter* fTexOverrideFilter;
+ SkAutoTUnref<SkNWayCanvas> fPaintFilterCanvas;
/**
The active saveLayer commands at a given point in the renderering.
@@ -274,6 +274,8 @@ private:
void outputPointsCommon(const SkPoint* pts, int count);
void outputScalar(SkScalar num);
+ void updatePaintFilterCanvas();
+
typedef SkCanvas INHERITED;
};
« no previous file with comments | « src/utils/SkPaintFilterCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698