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

Unified Diff: skia/ext/benchmarking_canvas.cc

Issue 1011683006: stop using deprecated SkPaint::FilterLevel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
Index: skia/ext/benchmarking_canvas.cc
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index dbe851ab7118c6222009f8842696f2eb19ed9cfd..fb6f7ad4fcfd8e7bb686abc168dd807e6f29603c 100644
--- a/skia/ext/benchmarking_canvas.cc
+++ b/skia/ext/benchmarking_canvas.cc
@@ -244,12 +244,13 @@ scoped_ptr<base::Value> AsValue(const SkPaint& paint) {
val->SetString("Flags", builder.str());
}
- if (paint.getFilterLevel() != default_paint.getFilterLevel()) {
- static const char* gFilterLevelStrings[] =
- { "None", "Low", "Medium", "High" };
- DCHECK_LT(static_cast<size_t>(paint.getFilterLevel()),
- SK_ARRAY_COUNT(gFilterLevelStrings));
- val->SetString("FilterLevel", gFilterLevelStrings[paint.getFilterLevel()]);
+ if (paint.getFilterQuality() != default_paint.getFilterQuality()) {
+ static const char* gFilterQualityStrings[] = {
+ "None", "Low", "Medium", "High"};
+ DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()),
+ SK_ARRAY_COUNT(gFilterQualityStrings));
+ val->SetString("FilterLevel",
+ gFilterQualityStrings[paint.getFilterQuality()]);
}
if (paint.getTextSize() != default_paint.getTextSize())

Powered by Google App Engine
This is Rietveld 408576698