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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 int vertexCount, | 63 int vertexCount, |
64 const SkPoint vertices[], | 64 const SkPoint vertices[], |
65 const SkPoint texs[], | 65 const SkPoint texs[], |
66 const SkColor colors[], | 66 const SkColor colors[], |
67 SkXfermode*, | 67 SkXfermode*, |
68 const uint16_t indices[], | 68 const uint16_t indices[], |
69 int indexCount, | 69 int indexCount, |
70 const SkPaint&) OVERRIDE; | 70 const SkPaint&) OVERRIDE; |
71 | 71 |
72 protected: | 72 protected: |
73 virtual void willSave(SaveFlags) OVERRIDE; | 73 virtual void willSave() OVERRIDE; |
74 virtual SaveLayerStrategy willSaveLayer(const SkRect*, | 74 virtual SaveLayerStrategy willSaveLayer(const SkRect*, |
75 const SkPaint*, | 75 const SkPaint*, |
76 SaveFlags) OVERRIDE; | 76 SaveFlags) OVERRIDE; |
77 virtual void willRestore() OVERRIDE; | 77 virtual void willRestore() OVERRIDE; |
78 | 78 |
79 virtual void onClipRect(const SkRect& rect, | 79 virtual void onClipRect(const SkRect& rect, |
80 SkRegion::Op op, | 80 SkRegion::Op op, |
81 ClipEdgeStyle edge_style) OVERRIDE; | 81 ClipEdgeStyle edge_style) OVERRIDE; |
82 virtual void onClipRRect(const SkRRect& rrect, | 82 virtual void onClipRRect(const SkRRect& rrect, |
83 SkRegion::Op op, | 83 SkRegion::Op op, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 bool is_solid_color_; | 121 bool is_solid_color_; |
122 SkColor color_; | 122 SkColor color_; |
123 bool is_transparent_; | 123 bool is_transparent_; |
124 bool has_text_; | 124 bool has_text_; |
125 }; | 125 }; |
126 | 126 |
127 } // namespace skia | 127 } // namespace skia |
128 | 128 |
129 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ | 129 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ |
130 | 130 |
OLD | NEW |