FilterLevel -> SkFilterQuality

BUG=skia:
TBR=
NOTREECHECKS=True
NOTRY=True

Review URL: https://codereview.chromium.org/1010023002
This commit is contained in:
reed 2015-03-16 10:26:13 -07:00 committed by Commit bot
parent 93a1215fe0
commit e7903c7397
4 changed files with 8 additions and 8 deletions

View File

@ -292,9 +292,9 @@ void SkDebuggerGUI::actionVisualizationsChanged() {
} }
void SkDebuggerGUI::actionTextureFilter() { void SkDebuggerGUI::actionTextureFilter() {
SkPaint::FilterLevel level; SkFilterQuality quality;
bool enabled = fSettingsWidget.getFilterOverride(&level); bool enabled = fSettingsWidget.getFilterOverride(&quality);
fDebugger.setTexFilterOverride(enabled, level); fDebugger.setTexFilterOverride(enabled, quality);
fCanvasWidget.update(); fCanvasWidget.update();
} }

View File

@ -51,9 +51,9 @@ public:
#endif #endif
bool getFilterOverride(SkPaint::FilterLevel* filterLevel) const { bool getFilterOverride(SkFilterQuality* filterQuality) const {
int index = fFilterCombo.currentIndex(); int index = fFilterCombo.currentIndex();
*filterLevel = (SkPaint::FilterLevel)fFilterCombo.itemData(index).toUInt(); *filterQuality = (SkFilterQuality)fFilterCombo.itemData(index).toUInt();
return index > 0; return index > 0;
} }

View File

@ -111,9 +111,9 @@ public:
} }
} }
void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level) { void setTexFilterOverride(bool texFilterOverride, SkFilterQuality quality) {
if (fDebugCanvas) { if (fDebugCanvas) {
fDebugCanvas->overrideTexFiltering(texFilterOverride, level); fDebugCanvas->overrideTexFiltering(texFilterOverride, quality);
} }
} }

View File

@ -78,7 +78,7 @@ public:
static void PurgeFontCache(); static void PurgeFontCache();
/** /**
* Scaling bitmaps with the SkPaint::kHigh_FilterLevel setting is * Scaling bitmaps with the kHigh_SkFilterQuality setting is
* expensive, so the result is saved in the global Scaled Image * expensive, so the result is saved in the global Scaled Image
* Cache. * Cache.
* *