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() {
|
||||
SkPaint::FilterLevel level;
|
||||
bool enabled = fSettingsWidget.getFilterOverride(&level);
|
||||
fDebugger.setTexFilterOverride(enabled, level);
|
||||
SkFilterQuality quality;
|
||||
bool enabled = fSettingsWidget.getFilterOverride(&quality);
|
||||
fDebugger.setTexFilterOverride(enabled, quality);
|
||||
fCanvasWidget.update();
|
||||
}
|
||||
|
||||
|
@ -51,9 +51,9 @@ public:
|
||||
|
||||
#endif
|
||||
|
||||
bool getFilterOverride(SkPaint::FilterLevel* filterLevel) const {
|
||||
bool getFilterOverride(SkFilterQuality* filterQuality) const {
|
||||
int index = fFilterCombo.currentIndex();
|
||||
*filterLevel = (SkPaint::FilterLevel)fFilterCombo.itemData(index).toUInt();
|
||||
*filterQuality = (SkFilterQuality)fFilterCombo.itemData(index).toUInt();
|
||||
|
||||
return index > 0;
|
||||
}
|
||||
|
@ -111,9 +111,9 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void setTexFilterOverride(bool texFilterOverride, SkPaint::FilterLevel level) {
|
||||
void setTexFilterOverride(bool texFilterOverride, SkFilterQuality quality) {
|
||||
if (fDebugCanvas) {
|
||||
fDebugCanvas->overrideTexFiltering(texFilterOverride, level);
|
||||
fDebugCanvas->overrideTexFiltering(texFilterOverride, quality);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
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
|
||||
* Cache.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user