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

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

Issue 1009183002: swith over from SkPaint::FilterLevel to SkFilterQuality (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/debugger/SkDebugCanvas.h ('k') | tests/DrawBitmapRectTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/debugger/SkDebugCanvas.cpp
diff --git a/src/utils/debugger/SkDebugCanvas.cpp b/src/utils/debugger/SkDebugCanvas.cpp
index 64745820cc36ee370c0a204293d6ecda4127150e..779d6950d7d1fd9bba56e95c572f620948636648 100644
--- a/src/utils/debugger/SkDebugCanvas.cpp
+++ b/src/utils/debugger/SkDebugCanvas.cpp
@@ -156,20 +156,20 @@ private:
// texture filtering mode
class SkTexOverrideFilter : public SkDrawFilter {
public:
- SkTexOverrideFilter() : fFilterLevel(SkPaint::kNone_FilterLevel) {
+ SkTexOverrideFilter() : fFilterQuality(kNone_SkFilterQuality) {
}
- void setFilterLevel(SkPaint::FilterLevel filterLevel) {
- fFilterLevel = filterLevel;
+ void setFilterQuality(SkFilterQuality filterQuality) {
+ fFilterQuality = filterQuality;
}
bool filter(SkPaint* p, Type) SK_OVERRIDE {
- p->setFilterLevel(fFilterLevel);
+ p->setFilterQuality(fFilterQuality);
return true;
}
protected:
- SkPaint::FilterLevel fFilterLevel;
+ SkFilterQuality fFilterQuality;
private:
typedef SkDrawFilter INHERITED;
@@ -379,13 +379,13 @@ SkTDArray <SkDrawCommand*>& SkDebugCanvas::getDrawCommands() {
return fCommandVector;
}
-void SkDebugCanvas::overrideTexFiltering(bool overrideTexFiltering, SkPaint::FilterLevel level) {
+void SkDebugCanvas::overrideTexFiltering(bool overrideTexFiltering, SkFilterQuality quality) {
if (NULL == fTexOverrideFilter) {
fTexOverrideFilter = new SkTexOverrideFilter;
}
fOverrideTexFiltering = overrideTexFiltering;
- fTexOverrideFilter->setFilterLevel(level);
+ fTexOverrideFilter->setFilterQuality(quality);
}
void SkDebugCanvas::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle) {
« no previous file with comments | « src/utils/debugger/SkDebugCanvas.h ('k') | tests/DrawBitmapRectTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698