| OLD | NEW |
| 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 "GenA8FromLCD"); | 242 "GenA8FromLCD"); |
| 243 | 243 |
| 244 val->SetString("Flags", builder.str()); | 244 val->SetString("Flags", builder.str()); |
| 245 } | 245 } |
| 246 | 246 |
| 247 if (paint.getFilterQuality() != default_paint.getFilterQuality()) { | 247 if (paint.getFilterQuality() != default_paint.getFilterQuality()) { |
| 248 static const char* gFilterQualityStrings[] = { | 248 static const char* gFilterQualityStrings[] = { |
| 249 "None", "Low", "Medium", "High"}; | 249 "None", "Low", "Medium", "High"}; |
| 250 DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()), | 250 DCHECK_LT(static_cast<size_t>(paint.getFilterQuality()), |
| 251 SK_ARRAY_COUNT(gFilterQualityStrings)); | 251 SK_ARRAY_COUNT(gFilterQualityStrings)); |
| 252 val->SetString("FilterQuality", | 252 val->SetString("FilterLevel", |
| 253 gFilterQualityStrings[paint.getFilterQuality()]); | 253 gFilterQualityStrings[paint.getFilterQuality()]); |
| 254 } | 254 } |
| 255 | 255 |
| 256 if (paint.getTextSize() != default_paint.getTextSize()) | 256 if (paint.getTextSize() != default_paint.getTextSize()) |
| 257 val->SetDouble("TextSize", paint.getTextSize()); | 257 val->SetDouble("TextSize", paint.getTextSize()); |
| 258 | 258 |
| 259 if (paint.getTextScaleX() != default_paint.getTextScaleX()) | 259 if (paint.getTextScaleX() != default_paint.getTextScaleX()) |
| 260 val->SetDouble("TextScaleX", paint.getTextScaleX()); | 260 val->SetDouble("TextScaleX", paint.getTextScaleX()); |
| 261 | 261 |
| 262 if (paint.getTextSkewX() != default_paint.getTextSkewX()) | 262 if (paint.getTextSkewX() != default_paint.getTextSkewX()) |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 DCHECK(blob); | 813 DCHECK(blob); |
| 814 AutoOp op(this, "DrawTextBlob", &paint); | 814 AutoOp op(this, "DrawTextBlob", &paint); |
| 815 op.addParam("blob", AsValue(*blob)); | 815 op.addParam("blob", AsValue(*blob)); |
| 816 op.addParam("x", AsValue(x)); | 816 op.addParam("x", AsValue(x)); |
| 817 op.addParam("y", AsValue(y)); | 817 op.addParam("y", AsValue(y)); |
| 818 | 818 |
| 819 INHERITED::onDrawTextBlob(blob, x, y, *op.paint()); | 819 INHERITED::onDrawTextBlob(blob, x, y, *op.paint()); |
| 820 } | 820 } |
| 821 | 821 |
| 822 } // namespace skia | 822 } // namespace skia |
| OLD | NEW |