| 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 #ifndef CC_PAINT_PAINT_CANVAS_H_ | 5 #ifndef CC_PAINT_PAINT_CANVAS_H_ |
| 6 #define CC_PAINT_PAINT_CANVAS_H_ | 6 #define CC_PAINT_PAINT_CANVAS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 const SkPoint pos[], | 163 const SkPoint pos[], |
| 164 const PaintFlags& flags) = 0; | 164 const PaintFlags& flags) = 0; |
| 165 virtual void drawTextBlob(sk_sp<SkTextBlob> blob, | 165 virtual void drawTextBlob(sk_sp<SkTextBlob> blob, |
| 166 SkScalar x, | 166 SkScalar x, |
| 167 SkScalar y, | 167 SkScalar y, |
| 168 const PaintFlags& flags) = 0; | 168 const PaintFlags& flags) = 0; |
| 169 | 169 |
| 170 virtual void drawDisplayItemList( | 170 virtual void drawDisplayItemList( |
| 171 scoped_refptr<DisplayItemList> display_item_list) = 0; | 171 scoped_refptr<DisplayItemList> display_item_list) = 0; |
| 172 | 172 |
| 173 virtual void drawPicture(sk_sp<const PaintRecord> record, | 173 virtual void drawPicture(sk_sp<const PaintRecord> record) = 0; |
| 174 const SkMatrix* matrix, | |
| 175 const PaintFlags* flags) = 0; | |
| 176 void drawPicture(sk_sp<const PaintRecord> record) { | |
| 177 drawPicture(record, nullptr, nullptr); | |
| 178 } | |
| 179 | 174 |
| 180 virtual bool isClipEmpty() const = 0; | 175 virtual bool isClipEmpty() const = 0; |
| 181 virtual bool isClipRect() const = 0; | 176 virtual bool isClipRect() const = 0; |
| 182 virtual const SkMatrix& getTotalMatrix() const = 0; | 177 virtual const SkMatrix& getTotalMatrix() const = 0; |
| 183 | 178 |
| 184 // For GraphicsContextCanvas only. Maybe this could be rewritten? | 179 // For GraphicsContextCanvas only. Maybe this could be rewritten? |
| 185 virtual void temporary_internal_describeTopLayer(SkMatrix* matrix, | 180 virtual void temporary_internal_describeTopLayer(SkMatrix* matrix, |
| 186 SkIRect* clip_bounds) = 0; | 181 SkIRect* clip_bounds) = 0; |
| 187 | 182 |
| 188 virtual bool ToPixmap(SkPixmap* output) = 0; | 183 virtual bool ToPixmap(SkPixmap* output) = 0; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 const SkPoint& point, | 259 const SkPoint& point, |
| 265 SkData* data); | 260 SkData* data); |
| 266 | 261 |
| 267 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas, | 262 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas, |
| 268 const SkRect& rect, | 263 const SkRect& rect, |
| 269 SkData* data); | 264 SkData* data); |
| 270 | 265 |
| 271 } // namespace cc | 266 } // namespace cc |
| 272 | 267 |
| 273 #endif // CC_PAINT_PAINT_CANVAS_H_ | 268 #endif // CC_PAINT_PAINT_CANVAS_H_ |
| OLD | NEW |