| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "cc/paint/paint_canvas.h" | 5 #include "cc/paint/skia_paint_canvas.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "cc/paint/display_item_list.h" | 8 #include "cc/paint/display_item_list.h" |
| 9 #include "cc/paint/paint_record.h" | |
| 10 #include "cc/paint/paint_recorder.h" | 9 #include "cc/paint/paint_recorder.h" |
| 11 #include "third_party/skia/include/core/SkAnnotation.h" | 10 #include "third_party/skia/include/core/SkAnnotation.h" |
| 12 #include "third_party/skia/include/core/SkMetaData.h" | 11 #include "third_party/skia/include/core/SkMetaData.h" |
| 13 #include "third_party/skia/include/utils/SkNWayCanvas.h" | 12 #include "third_party/skia/include/utils/SkNWayCanvas.h" |
| 14 | 13 |
| 15 namespace cc { | 14 namespace cc { |
| 16 | 15 |
| 17 SkiaPaintCanvas::SkiaPaintCanvas(SkCanvas* canvas) : canvas_(canvas) {} | 16 SkiaPaintCanvas::SkiaPaintCanvas(SkCanvas* canvas) : canvas_(canvas) {} |
| 18 | 17 |
| 19 SkiaPaintCanvas::SkiaPaintCanvas(const SkBitmap& bitmap) | 18 SkiaPaintCanvas::SkiaPaintCanvas(const SkBitmap& bitmap) |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 break; | 295 break; |
| 297 case AnnotationType::NAMED_DESTINATION: { | 296 case AnnotationType::NAMED_DESTINATION: { |
| 298 SkPoint point = SkPoint::Make(rect.x(), rect.y()); | 297 SkPoint point = SkPoint::Make(rect.x(), rect.y()); |
| 299 SkAnnotateNamedDestination(canvas_, point, data.get()); | 298 SkAnnotateNamedDestination(canvas_, point, data.get()); |
| 300 break; | 299 break; |
| 301 } | 300 } |
| 302 } | 301 } |
| 303 } | 302 } |
| 304 | 303 |
| 305 } // namespace cc | 304 } // namespace cc |
| OLD | NEW |