| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 const PaintFlags& flags) override; | 123 const PaintFlags& flags) override; |
| 124 void drawPosText(const void* text, | 124 void drawPosText(const void* text, |
| 125 size_t byte_length, | 125 size_t byte_length, |
| 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, |
| 134 const DisplayItemList*) override; |
| 135 |
| 133 void drawPicture(sk_sp<const PaintRecord> record, | 136 void drawPicture(sk_sp<const PaintRecord> record, |
| 134 const SkMatrix* matrix, | 137 const SkMatrix* matrix, |
| 135 const PaintFlags* flags) override; | 138 const PaintFlags* flags) override; |
| 136 | 139 |
| 137 bool isClipEmpty() const override; | 140 bool isClipEmpty() const override; |
| 138 bool isClipRect() const override; | 141 bool isClipRect() const override; |
| 139 const SkMatrix& getTotalMatrix() const override; | 142 const SkMatrix& getTotalMatrix() const override; |
| 140 | 143 |
| 141 void temporary_internal_describeTopLayer(SkMatrix* matrix, | 144 void temporary_internal_describeTopLayer(SkMatrix* matrix, |
| 142 SkIRect* clip_bounds) override; | 145 SkIRect* clip_bounds) override; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 156 using PaintCanvas::drawPicture; | 159 using PaintCanvas::drawPicture; |
| 157 | 160 |
| 158 private: | 161 private: |
| 159 SkCanvas* canvas_; | 162 SkCanvas* canvas_; |
| 160 std::unique_ptr<SkCanvas> owned_; | 163 std::unique_ptr<SkCanvas> owned_; |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 } // namespace cc | 166 } // namespace cc |
| 164 | 167 |
| 165 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ | 168 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ |
| OLD | NEW |