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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 int src_y) override; | 46 int src_y) override; |
47 bool readPixels(SkBitmap* bitmap, int src_x, int src_y) override; | 47 bool readPixels(SkBitmap* bitmap, int src_x, int src_y) override; |
48 bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap) override; | 48 bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap) override; |
49 bool writePixels(const SkImageInfo& info, | 49 bool writePixels(const SkImageInfo& info, |
50 const void* pixels, | 50 const void* pixels, |
51 size_t row_bytes, | 51 size_t row_bytes, |
52 int x, | 52 int x, |
53 int y) override; | 53 int y) override; |
54 int save() override; | 54 int save() override; |
55 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override; | 55 int saveLayer(const SkRect* bounds, const PaintFlags* flags) override; |
56 int saveLayerAlpha(const SkRect* bounds, U8CPU alpha) override; | 56 int saveLayerAlpha(const SkRect* bounds, uint8_t alpha) override; |
57 | 57 |
58 void restore() override; | 58 void restore() override; |
59 int getSaveCount() const override; | 59 int getSaveCount() const override; |
60 void restoreToCount(int save_count) override; | 60 void restoreToCount(int save_count) override; |
61 void translate(SkScalar dx, SkScalar dy) override; | 61 void translate(SkScalar dx, SkScalar dy) override; |
62 void scale(SkScalar sx, SkScalar sy) override; | 62 void scale(SkScalar sx, SkScalar sy) override; |
63 void rotate(SkScalar degrees) override; | 63 void rotate(SkScalar degrees) override; |
64 void concat(const SkMatrix& matrix) override; | 64 void concat(const SkMatrix& matrix) override; |
65 void setMatrix(const SkMatrix& matrix) override; | 65 void setMatrix(const SkMatrix& matrix) override; |
66 | 66 |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 private: | 163 private: |
164 SkCanvas* canvas_; | 164 SkCanvas* canvas_; |
165 std::unique_ptr<SkCanvas> owned_; | 165 std::unique_ptr<SkCanvas> owned_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); | 167 DISALLOW_COPY_AND_ASSIGN(SkiaPaintCanvas); |
168 }; | 168 }; |
169 | 169 |
170 } // namespace cc | 170 } // namespace cc |
171 | 171 |
172 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ | 172 #endif // CC_PAINT_SKIA_PAINT_CANVAS_H_ |
OLD | NEW |