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

Unified Diff: skia/ext/benchmarking_canvas.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.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 | « skia/config/SkUserConfig.h ('k') | skia/ext/bitmap_platform_device_cairo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/benchmarking_canvas.cc
diff --git a/skia/ext/benchmarking_canvas.cc b/skia/ext/benchmarking_canvas.cc
index dbe851ab7118c6222009f8842696f2eb19ed9cfd..194f3825727abfa39fc6ca09fed7d8ee4d52a696 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("FilterQuality",
+ gFilterQualityStrings[paint.getFilterQuality()]);
}
if (paint.getTextSize() != default_paint.getTextSize())
« no previous file with comments | « skia/config/SkUserConfig.h ('k') | skia/ext/bitmap_platform_device_cairo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698