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 30 matching lines...) Expand all Loading... |
41 void drawPath(const SkPath& path, const SkPaint&) override; | 41 void drawPath(const SkPath& path, const SkPaint&) override; |
42 void drawBitmap(const SkBitmap&, | 42 void drawBitmap(const SkBitmap&, |
43 SkScalar left, | 43 SkScalar left, |
44 SkScalar top, | 44 SkScalar top, |
45 const SkPaint* paint = NULL) override; | 45 const SkPaint* paint = NULL) override; |
46 void drawBitmapRectToRect(const SkBitmap&, | 46 void drawBitmapRectToRect(const SkBitmap&, |
47 const SkRect* src, | 47 const SkRect* src, |
48 const SkRect& dst, | 48 const SkRect& dst, |
49 const SkPaint* paint, | 49 const SkPaint* paint, |
50 DrawBitmapRectFlags flags) override; | 50 DrawBitmapRectFlags flags) override; |
51 void drawBitmapMatrix(const SkBitmap&, | |
52 const SkMatrix&, | |
53 const SkPaint* paint = NULL) override; | |
54 void drawBitmapNine(const SkBitmap& bitmap, | 51 void drawBitmapNine(const SkBitmap& bitmap, |
55 const SkIRect& center, | 52 const SkIRect& center, |
56 const SkRect& dst, | 53 const SkRect& dst, |
57 const SkPaint* paint = NULL) override; | 54 const SkPaint* paint = NULL) override; |
58 void drawSprite(const SkBitmap&, | 55 void drawSprite(const SkBitmap&, |
59 int left, | 56 int left, |
60 int top, | 57 int top, |
61 const SkPaint* paint = NULL) override; | 58 const SkPaint* paint = NULL) override; |
62 void drawVertices(VertexMode, | 59 void drawVertices(VertexMode, |
63 int vertexCount, | 60 int vertexCount, |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 bool is_solid_color_; | 125 bool is_solid_color_; |
129 SkColor color_; | 126 SkColor color_; |
130 bool is_transparent_; | 127 bool is_transparent_; |
131 int draw_op_count_; | 128 int draw_op_count_; |
132 }; | 129 }; |
133 | 130 |
134 } // namespace skia | 131 } // namespace skia |
135 | 132 |
136 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ | 133 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ |
137 | 134 |
OLD | NEW |