| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 const SkMatrix& getTotalMatrix() const override; | 152 const SkMatrix& getTotalMatrix() const override; |
| 153 | 153 |
| 154 void temporary_internal_describeTopLayer(SkMatrix* matrix, | 154 void temporary_internal_describeTopLayer(SkMatrix* matrix, |
| 155 SkIRect* clip_bounds) override; | 155 SkIRect* clip_bounds) override; |
| 156 | 156 |
| 157 bool ToPixmap(SkPixmap* output) override; | 157 bool ToPixmap(SkPixmap* output) override; |
| 158 void AnnotateRectWithURL(const SkRect& rect, SkData* data) override; | 158 void AnnotateRectWithURL(const SkRect& rect, SkData* data) override; |
| 159 void AnnotateNamedDestination(const SkPoint& point, SkData* data) override; | 159 void AnnotateNamedDestination(const SkPoint& point, SkData* data) override; |
| 160 void AnnotateLinkToDestination(const SkRect& rect, SkData* data) override; | 160 void AnnotateLinkToDestination(const SkRect& rect, SkData* data) override; |
| 161 | 161 |
| 162 void PlaybackPaintRecord(sk_sp<const PaintRecord> record) override; |
| 163 |
| 162 // Don't shadow non-virtual helper functions. | 164 // Don't shadow non-virtual helper functions. |
| 163 using PaintCanvas::clipRect; | 165 using PaintCanvas::clipRect; |
| 164 using PaintCanvas::clipRRect; | 166 using PaintCanvas::clipRRect; |
| 165 using PaintCanvas::clipPath; | 167 using PaintCanvas::clipPath; |
| 166 using PaintCanvas::drawBitmap; | 168 using PaintCanvas::drawBitmap; |
| 167 using PaintCanvas::drawColor; | 169 using PaintCanvas::drawColor; |
| 168 using PaintCanvas::drawImage; | 170 using PaintCanvas::drawImage; |
| 169 | 171 |
| 170 private: | 172 private: |
| 171 SkCanvas* canvas_; | 173 SkCanvas* canvas_; |
| 172 std::unique_ptr<SkCanvas> owned_; | 174 std::unique_ptr<SkCanvas> owned_; |
| 173 }; | 175 }; |
| 174 | 176 |
| 175 } // namespace cc | 177 } // namespace cc |
| 176 | 178 |
| 177 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ | 179 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ |
| OLD | NEW |