| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 const SkPoint pos[], | 126 const SkPoint pos[], |
| 127 const PaintFlags& flags) override; | 127 const PaintFlags& flags) override; |
| 128 void drawTextBlob(sk_sp<SkTextBlob> blob, | 128 void drawTextBlob(sk_sp<SkTextBlob> blob, |
| 129 SkScalar x, | 129 SkScalar x, |
| 130 SkScalar y, | 130 SkScalar y, |
| 131 const PaintFlags& flags) override; | 131 const PaintFlags& flags) override; |
| 132 | 132 |
| 133 void drawDisplayItemList(const SkRect& bounds, | 133 void drawDisplayItemList(const SkRect& bounds, |
| 134 const DisplayItemList*) override; | 134 const DisplayItemList*) override; |
| 135 | 135 |
| 136 void drawPicture(sk_sp<const PaintRecord> record, | 136 void drawPicture(sk_sp<const PaintRecord> record) override; |
| 137 const SkMatrix* matrix, | |
| 138 const PaintFlags* flags) override; | |
| 139 | 137 |
| 140 bool isClipEmpty() const override; | 138 bool isClipEmpty() const override; |
| 141 bool isClipRect() const override; | 139 bool isClipRect() const override; |
| 142 const SkMatrix& getTotalMatrix() const override; | 140 const SkMatrix& getTotalMatrix() const override; |
| 143 | 141 |
| 144 void temporary_internal_describeTopLayer(SkMatrix* matrix, | 142 void temporary_internal_describeTopLayer(SkMatrix* matrix, |
| 145 SkIRect* clip_bounds) override; | 143 SkIRect* clip_bounds) override; |
| 146 | 144 |
| 147 bool ToPixmap(SkPixmap* output) override; | 145 bool ToPixmap(SkPixmap* output) override; |
| 148 void AnnotateRectWithURL(const SkRect& rect, SkData* data) override; | 146 void AnnotateRectWithURL(const SkRect& rect, SkData* data) override; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 159 using PaintCanvas::drawPicture; | 157 using PaintCanvas::drawPicture; |
| 160 | 158 |
| 161 private: | 159 private: |
| 162 SkCanvas* canvas_; | 160 SkCanvas* canvas_; |
| 163 std::unique_ptr<SkCanvas> owned_; | 161 std::unique_ptr<SkCanvas> owned_; |
| 164 }; | 162 }; |
| 165 | 163 |
| 166 } // namespace cc | 164 } // namespace cc |
| 167 | 165 |
| 168 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ | 166 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ |
| OLD | NEW |