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/debug/trace_event.h" | 5 #include "base/debug/trace_event.h" |
6 #include "base/logging.h" | 6 #include "base/logging.h" |
7 #include "skia/ext/analysis_canvas.h" | 7 #include "skia/ext/analysis_canvas.h" |
8 #include "third_party/skia/include/core/SkDraw.h" | 8 #include "third_party/skia/include/core/SkDraw.h" |
9 #include "third_party/skia/include/core/SkRRect.h" | 9 #include "third_party/skia/include/core/SkRRect.h" |
10 #include "third_party/skia/include/core/SkShader.h" | 10 #include "third_party/skia/include/core/SkShader.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void AnalysisCanvas::onDrawTextOnPath(const void* text, | 260 void AnalysisCanvas::onDrawTextOnPath(const void* text, |
261 size_t len, | 261 size_t len, |
262 const SkPath& path, | 262 const SkPath& path, |
263 const SkMatrix* matrix, | 263 const SkMatrix* matrix, |
264 const SkPaint& paint) { | 264 const SkPaint& paint) { |
265 is_solid_color_ = false; | 265 is_solid_color_ = false; |
266 is_transparent_ = false; | 266 is_transparent_ = false; |
267 ++draw_op_count_; | 267 ++draw_op_count_; |
268 } | 268 } |
269 | 269 |
| 270 void AnalysisCanvas::onDrawTextBlob(const SkTextBlob* blob, |
| 271 SkScalar x, |
| 272 SkScalar y, |
| 273 const SkPaint &paint) { |
| 274 is_solid_color_ = false; |
| 275 is_transparent_ = false; |
| 276 ++draw_op_count_; |
| 277 } |
| 278 |
270 void AnalysisCanvas::onDrawDRRect(const SkRRect& outer, | 279 void AnalysisCanvas::onDrawDRRect(const SkRRect& outer, |
271 const SkRRect& inner, | 280 const SkRRect& inner, |
272 const SkPaint& paint) { | 281 const SkPaint& paint) { |
273 is_solid_color_ = false; | 282 is_solid_color_ = false; |
274 is_transparent_ = false; | 283 is_transparent_ = false; |
275 ++draw_op_count_; | 284 ++draw_op_count_; |
276 } | 285 } |
277 | 286 |
278 void AnalysisCanvas::drawVertices(SkCanvas::VertexMode, | 287 void AnalysisCanvas::drawVertices(SkCanvas::VertexMode, |
279 int vertex_count, | 288 int vertex_count, |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 force_not_transparent_stack_level_ = kNoLayer; | 452 force_not_transparent_stack_level_ = kNoLayer; |
444 } | 453 } |
445 } | 454 } |
446 | 455 |
447 INHERITED::willRestore(); | 456 INHERITED::willRestore(); |
448 } | 457 } |
449 | 458 |
450 } // namespace skia | 459 } // namespace skia |
451 | 460 |
452 | 461 |
OLD | NEW |