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

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
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, 242 builder.addFlag(false, "GenA8FromLCD");
bungeman-chromium 2015/12/10 22:50:00 Can this just be deleted? It doesn't seem to be ne
243 "GenA8FromLCD");
244 243
245 val->SetString("Flags", builder.str()); 244 val->SetString("Flags", builder.str());
246 } 245 }
247 246
248 if (paint.getFilterQuality() != default_paint.getFilterQuality()) { 247 if (paint.getFilterQuality() != default_paint.getFilterQuality()) {
249 static const char* gFilterQualityStrings[] = { 248 static const char* gFilterQualityStrings[] = {
250 "None", "Low", "Medium", "High"}; 249 "None", "Low", "Medium", "High"};
251 DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()), 250 DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()),
252 SK_ARRAY_COUNT(gFilterQualityStrings)); 251 SK_ARRAY_COUNT(gFilterQualityStrings));
253 val->SetString("FilterLevel", 252 val->SetString("FilterLevel",
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 DCHECK(blob); 806 DCHECK(blob);
808 AutoOp op(this, "DrawTextBlob", &paint); 807 AutoOp op(this, "DrawTextBlob", &paint);
809 op.addParam("blob", AsValue(*blob)); 808 op.addParam("blob", AsValue(*blob));
810 op.addParam("x", AsValue(x)); 809 op.addParam("x", AsValue(x));
811 op.addParam("y", AsValue(y)); 810 op.addParam("y", AsValue(y));
812 811
813 INHERITED::onDrawTextBlob(blob, x, y, *op.paint()); 812 INHERITED::onDrawTextBlob(blob, x, y, *op.paint());
814 } 813 }
815 814
816 } // namespace skia 815 } // namespace skia
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698