| 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/SkDevice.h" | 8 #include "third_party/skia/include/core/SkDevice.h" |
| 9 #include "third_party/skia/include/core/SkDraw.h" | 9 #include "third_party/skia/include/core/SkDraw.h" |
| 10 #include "third_party/skia/include/core/SkRRect.h" | 10 #include "third_party/skia/include/core/SkRRect.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 } | 175 } |
| 176 } | 176 } |
| 177 | 177 |
| 178 void AnalysisDevice::drawOval(const SkDraw& draw, | 178 void AnalysisDevice::drawOval(const SkDraw& draw, |
| 179 const SkRect& oval, | 179 const SkRect& oval, |
| 180 const SkPaint& paint) { | 180 const SkPaint& paint) { |
| 181 is_solid_color_ = false; | 181 is_solid_color_ = false; |
| 182 is_transparent_ = false; | 182 is_transparent_ = false; |
| 183 } | 183 } |
| 184 | 184 |
| 185 void AnalysisDevice::drawRRect(const SkDraw& draw, |
| 186 const SkRRect& rr, |
| 187 const SkPaint& paint) { |
| 188 // This should add the SkRRect to an SkPath, and call |
| 189 // drawPath, but since drawPath ignores the SkPath, just |
| 190 // do the same work here. |
| 191 is_solid_color_ = false; |
| 192 is_transparent_ = false; |
| 193 } |
| 194 |
| 185 void AnalysisDevice::drawPath(const SkDraw& draw, | 195 void AnalysisDevice::drawPath(const SkDraw& draw, |
| 186 const SkPath& path, | 196 const SkPath& path, |
| 187 const SkPaint& paint, | 197 const SkPaint& paint, |
| 188 const SkMatrix* pre_path_matrix, | 198 const SkMatrix* pre_path_matrix, |
| 189 bool path_is_mutable) { | 199 bool path_is_mutable) { |
| 190 is_solid_color_ = false; | 200 is_solid_color_ = false; |
| 191 is_transparent_ = false; | 201 is_transparent_ = false; |
| 192 } | 202 } |
| 193 | 203 |
| 194 void AnalysisDevice::drawBitmap(const SkDraw& draw, | 204 void AnalysisDevice::drawBitmap(const SkDraw& draw, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 (static_cast<AnalysisDevice*>(getDevice()))->SetForceNotTransparent( | 418 (static_cast<AnalysisDevice*>(getDevice()))->SetForceNotTransparent( |
| 409 false); | 419 false); |
| 410 force_not_transparent_stack_level_ = kNoLayer; | 420 force_not_transparent_stack_level_ = kNoLayer; |
| 411 } | 421 } |
| 412 } | 422 } |
| 413 } | 423 } |
| 414 | 424 |
| 415 } // namespace skia | 425 } // namespace skia |
| 416 | 426 |
| 417 | 427 |
| OLD | NEW |