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

Side by Side Diff: skia/ext/benchmarking_canvas.cc

Issue 1518893003: SkPaint::kGenA8FromLCD_Flagis no longer used, so remove references to it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "skia/ext/benchmarking_canvas.h" 8 #include "skia/ext/benchmarking_canvas.h"
9 #include "third_party/skia/include/core/SkColorFilter.h" 9 #include "third_party/skia/include/core/SkColorFilter.h"
10 #include "third_party/skia/include/core/SkImageFilter.h" 10 #include "third_party/skia/include/core/SkImageFilter.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 builder.addFlag(paint.isUnderlineText(), "UnderlineText"); 232 builder.addFlag(paint.isUnderlineText(), "UnderlineText");
233 builder.addFlag(paint.isStrikeThruText(), "StrikeThruText"); 233 builder.addFlag(paint.isStrikeThruText(), "StrikeThruText");
234 builder.addFlag(paint.isFakeBoldText(), "FakeBoldText"); 234 builder.addFlag(paint.isFakeBoldText(), "FakeBoldText");
235 builder.addFlag(paint.isLinearText(), "LinearText"); 235 builder.addFlag(paint.isLinearText(), "LinearText");
236 builder.addFlag(paint.isSubpixelText(), "SubpixelText"); 236 builder.addFlag(paint.isSubpixelText(), "SubpixelText");
237 builder.addFlag(paint.isDevKernText(), "DevKernText"); 237 builder.addFlag(paint.isDevKernText(), "DevKernText");
238 builder.addFlag(paint.isLCDRenderText(), "LCDRenderText"); 238 builder.addFlag(paint.isLCDRenderText(), "LCDRenderText");
239 builder.addFlag(paint.isEmbeddedBitmapText(), "EmbeddedBitmapText"); 239 builder.addFlag(paint.isEmbeddedBitmapText(), "EmbeddedBitmapText");
240 builder.addFlag(paint.isAutohinted(), "Autohinted"); 240 builder.addFlag(paint.isAutohinted(), "Autohinted");
241 builder.addFlag(paint.isVerticalText(), "VerticalText"); 241 builder.addFlag(paint.isVerticalText(), "VerticalText");
242 builder.addFlag(paint.getFlags() & SkPaint::kGenA8FromLCD_Flag,
243 "GenA8FromLCD");
244 242
245 val->SetString("Flags", builder.str()); 243 val->SetString("Flags", builder.str());
246 } 244 }
247 245
248 if (paint.getFilterQuality() != default_paint.getFilterQuality()) { 246 if (paint.getFilterQuality() != default_paint.getFilterQuality()) {
249 static const char* gFilterQualityStrings[] = { 247 static const char* gFilterQualityStrings[] = {
250 "None", "Low", "Medium", "High"}; 248 "None", "Low", "Medium", "High"};
251 DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()), 249 DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()),
252 SK_ARRAY_COUNT(gFilterQualityStrings)); 250 SK_ARRAY_COUNT(gFilterQualityStrings));
253 val->SetString("FilterLevel", 251 val->SetString("FilterLevel",
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 DCHECK(blob); 805 DCHECK(blob);
808 AutoOp op(this, "DrawTextBlob", &paint); 806 AutoOp op(this, "DrawTextBlob", &paint);
809 op.addParam("blob", AsValue(*blob)); 807 op.addParam("blob", AsValue(*blob));
810 op.addParam("x", AsValue(x)); 808 op.addParam("x", AsValue(x));
811 op.addParam("y", AsValue(y)); 809 op.addParam("y", AsValue(y));
812 810
813 INHERITED::onDrawTextBlob(blob, x, y, *op.paint()); 811 INHERITED::onDrawTextBlob(blob, x, y, *op.paint());
814 } 812 }
815 813
816 } // namespace skia 814 } // namespace skia
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/fonts/win/FontPlatformDataWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698