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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 SkiaPaintCanvas& operator=(SkiaPaintCanvas&& other) = default; | 34 SkiaPaintCanvas& operator=(SkiaPaintCanvas&& other) = default; |
35 | 35 |
36 SkMetaData& getMetaData() override; | 36 SkMetaData& getMetaData() override; |
37 SkImageInfo imageInfo() const override; | 37 SkImageInfo imageInfo() const override; |
38 | 38 |
39 void flush() override; | 39 void flush() override; |
40 | 40 |
41 int save() override; | 41 int save() override; |
42 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override; | 42 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override; |
43 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override; | 43 int saveLayerAlpha(const SkRect* bounds, uint8_t alpha) override; |
44 | 44 |
45 void restore() override; | 45 void restore() override; |
46 int getSaveCount() const override; | 46 int getSaveCount() const override; |
47 void restoreToCount(int save_count) override; | 47 void restoreToCount(int save_count) override; |
48 void translate(SkScalar dx, SkScalar dy) override; | 48 void translate(SkScalar dx, SkScalar dy) override; |
49 void scale(SkScalar sx, SkScalar sy) override; | 49 void scale(SkScalar sx, SkScalar sy) override; |
50 void rotate(SkScalar degrees) override; | 50 void rotate(SkScalar degrees) override; |
51 void concat(const SkMatrix& matrix) override; | 51 void concat(const SkMatrix& matrix) override; |
52 void setMatrix(const SkMatrix& matrix) override; | 52 void setMatrix(const SkMatrix& matrix) override; |
53 | 53 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 private: | 147 private: |
148 SkCanvas* canvas_; | 148 SkCanvas* canvas_; |
149 std::unique_ptr<SkCanvas> owned_; | 149 std::unique_ptr<SkCanvas> owned_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); | 151 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace cc | 154 } // namespace cc |
155 | 155 |
156 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ | 156 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ |
OLD | NEW |