OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 SKIA_EXT_ANALYSIS_CANVAS_H_ | 5 #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_ |
6 #define SKIA_EXT_ANALYSIS_CANVAS_H_ | 6 #define SKIA_EXT_ANALYSIS_CANVAS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "third_party/skia/include/core/SkCanvas.h" | 9 #include "third_party/skia/include/core/SkCanvas.h" |
10 #include "third_party/skia/include/core/SkPicture.h" | 10 #include "third_party/skia/include/core/SkPicture.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 // Returns true when a SkColor can be used to represent result. | 23 // Returns true when a SkColor can be used to represent result. |
24 bool GetColorIfSolid(SkColor* color) const; | 24 bool GetColorIfSolid(SkColor* color) const; |
25 | 25 |
26 void SetForceNotSolid(bool flag); | 26 void SetForceNotSolid(bool flag); |
27 void SetForceNotTransparent(bool flag); | 27 void SetForceNotTransparent(bool flag); |
28 | 28 |
29 // SkDrawPictureCallback override. | 29 // SkDrawPictureCallback override. |
30 bool abortDrawing() override; | 30 bool abortDrawing() override; |
31 | 31 |
32 // SkCanvas overrides. | 32 // SkCanvas overrides. |
33 void clear(SkColor) override; | |
34 void drawPaint(const SkPaint& paint) override; | 33 void drawPaint(const SkPaint& paint) override; |
35 void drawPoints(PointMode, | 34 void drawPoints(PointMode, |
36 size_t count, | 35 size_t count, |
37 const SkPoint pts[], | 36 const SkPoint pts[], |
38 const SkPaint&) override; | 37 const SkPaint&) override; |
39 void drawOval(const SkRect&, const SkPaint&) override; | 38 void drawOval(const SkRect&, const SkPaint&) override; |
40 void drawRect(const SkRect&, const SkPaint&) override; | 39 void drawRect(const SkRect&, const SkPaint&) override; |
41 void drawRRect(const SkRRect&, const SkPaint&) override; | 40 void drawRRect(const SkRRect&, const SkPaint&) override; |
42 void drawPath(const SkPath& path, const SkPaint&) override; | 41 void drawPath(const SkPath& path, const SkPaint&) override; |
43 void drawBitmap(const SkBitmap&, | 42 void drawBitmap(const SkBitmap&, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 bool is_solid_color_; | 128 bool is_solid_color_; |
130 SkColor color_; | 129 SkColor color_; |
131 bool is_transparent_; | 130 bool is_transparent_; |
132 int draw_op_count_; | 131 int draw_op_count_; |
133 }; | 132 }; |
134 | 133 |
135 } // namespace skia | 134 } // namespace skia |
136 | 135 |
137 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ | 136 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ |
138 | 137 |
OLD | NEW |