| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 const SkColor colors[], | 276 const SkColor colors[], |
| 277 SkXfermode* xmode, | 277 SkXfermode* xmode, |
| 278 const uint16_t indices[], | 278 const uint16_t indices[], |
| 279 int index_count, | 279 int index_count, |
| 280 const SkPaint& paint) { | 280 const SkPaint& paint) { |
| 281 is_solid_color_ = false; | 281 is_solid_color_ = false; |
| 282 is_transparent_ = false; | 282 is_transparent_ = false; |
| 283 } | 283 } |
| 284 | 284 |
| 285 void AnalysisDevice::drawDevice(const SkDraw& draw, | 285 void AnalysisDevice::drawDevice(const SkDraw& draw, |
| 286 SkDevice* device, | 286 SkBaseDevice* device, |
| 287 int x, | 287 int x, |
| 288 int y, | 288 int y, |
| 289 const SkPaint& paint) { | 289 const SkPaint& paint) { |
| 290 is_solid_color_ = false; | 290 is_solid_color_ = false; |
| 291 is_transparent_ = false; | 291 is_transparent_ = false; |
| 292 } | 292 } |
| 293 | 293 |
| 294 AnalysisCanvas::AnalysisCanvas(AnalysisDevice* device) | 294 AnalysisCanvas::AnalysisCanvas(AnalysisDevice* device) |
| 295 : INHERITED(device), | 295 : INHERITED(device), |
| 296 saved_stack_size_(0), | 296 saved_stack_size_(0), |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 (static_cast<AnalysisDevice*>(getDevice()))->SetForceNotTransparent( | 408 (static_cast<AnalysisDevice*>(getDevice()))->SetForceNotTransparent( |
| 409 false); | 409 false); |
| 410 force_not_transparent_stack_level_ = kNoLayer; | 410 force_not_transparent_stack_level_ = kNoLayer; |
| 411 } | 411 } |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 | 414 |
| 415 } // namespace skia | 415 } // namespace skia |
| 416 | 416 |
| 417 | 417 |
| OLD | NEW |