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

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

Issue 27716003: Add texture filtering override to debugger (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Cleaned up Created 7 years, 2 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 | « debugger/SkDebugger.h ('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
===================================================================
--- src/utils/debugger/SkDebugCanvas.h (revision 11819)
+++ src/utils/debugger/SkDebugCanvas.h (working copy)
@@ -16,6 +16,8 @@
#include "SkTArray.h"
#include "SkString.h"
+class SkTexOverrideFilter;
+
class SK_API SkDebugCanvas : public SkCanvas {
public:
SkDebugCanvas(int width, int height);
@@ -29,6 +31,11 @@
void setOverdrawViz(bool overdrawViz) { fOverdrawViz = overdrawViz; }
/**
+ * Enable or disable texure filtering override
+ */
+ void overrideTexFiltering(bool overrideTexFiltering, SkPaint::FilterLevel level);
+
+ /**
Executes all draw calls to the canvas.
@param canvas The canvas being drawn to
*/
@@ -245,9 +252,13 @@
SkMatrix fUserMatrix;
SkMatrix fMatrix;
SkIRect fClip;
+
bool fOverdrawViz;
SkDrawFilter* fOverdrawFilter;
+ bool fOverrideTexFiltering;
+ SkTexOverrideFilter* fTexOverrideFilter;
+
/**
Number of unmatched save() calls at any point during a draw.
If there are any saveLayer() calls outstanding, we need to resolve
« no previous file with comments | « debugger/SkDebugger.h ('k') | src/utils/debugger/SkDebugCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698