FilterLevel -> SkFilterQuality
BUG=skia: TBR= NOTREECHECKS=True NOTRY=True Review URL: https://codereview.chromium.org/1010023002
This commit is contained in:
parent
93a1215fe0
commit
e7903c7397
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user