| 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_SKIA_PAINT_CANVAS_H_ | 5 #ifndef CC_PAINT_SKIA_PAINT_CANVAS_H_ |
| 6 #define CC_PAINT_SKIA_PAINT_CANVAS_H_ | 6 #define CC_PAINT_SKIA_PAINT_CANVAS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 const SkPoint pos[], | 128 const SkPoint pos[], |
| 129 const PaintFlags& flags) override; | 129 const PaintFlags& flags) override; |
| 130 void drawTextBlob(sk_sp<SkTextBlob> blob, | 130 void drawTextBlob(sk_sp<SkTextBlob> blob, |
| 131 SkScalar x, | 131 SkScalar x, |
| 132 SkScalar y, | 132 SkScalar y, |
| 133 const PaintFlags& flags) override; | 133 const PaintFlags& flags) override; |
| 134 | 134 |
| 135 void drawDisplayItemList( | 135 void drawDisplayItemList( |
| 136 scoped_refptr<DisplayItemList> display_item_list) override; | 136 scoped_refptr<DisplayItemList> display_item_list) override; |
| 137 | 137 |
| 138 void drawPicture(sk_sp<const PaintRecord> record, | 138 void drawPicture(sk_sp<const PaintRecord> record) override; |
| 139 const SkMatrix* matrix, | |
| 140 const PaintFlags* flags) override; | |
| 141 | 139 |
| 142 bool isClipEmpty() const override; | 140 bool isClipEmpty() const override; |
| 143 bool isClipRect() const override; | 141 bool isClipRect() const override; |
| 144 const SkMatrix& getTotalMatrix() const override; | 142 const SkMatrix& getTotalMatrix() const override; |
| 145 | 143 |
| 146 void temporary_internal_describeTopLayer(SkMatrix* matrix, | 144 void temporary_internal_describeTopLayer(SkMatrix* matrix, |
| 147 SkIRect* clip_bounds) override; | 145 SkIRect* clip_bounds) override; |
| 148 | 146 |
| 149 bool ToPixmap(SkPixmap* output) override; | 147 bool ToPixmap(SkPixmap* output) override; |
| 150 void AnnotateRectWithURL(const SkRect& rect, SkData* data) override; | 148 void AnnotateRectWithURL(const SkRect& rect, SkData* data) override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 165 private: | 163 private: |
| 166 SkCanvas* canvas_; | 164 SkCanvas* canvas_; |
| 167 std::unique_ptr<SkCanvas> owned_; | 165 std::unique_ptr<SkCanvas> owned_; |
| 168 | 166 |
| 169 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); | 167 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); |
| 170 }; | 168 }; |
| 171 | 169 |
| 172 } // namespace cc | 170 } // namespace cc |
| 173 | 171 |
| 174 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ | 172 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ |
| OLD | NEW |