| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void onDrawPosTextH(const void* text, | 99 virtual void onDrawPosTextH(const void* text, |
| 100 size_t byteLength, | 100 size_t byteLength, |
| 101 const SkScalar xpos[], | 101 const SkScalar xpos[], |
| 102 SkScalar constY, | 102 SkScalar constY, |
| 103 const SkPaint&) OVERRIDE; | 103 const SkPaint&) OVERRIDE; |
| 104 virtual void onDrawTextOnPath(const void* text, | 104 virtual void onDrawTextOnPath(const void* text, |
| 105 size_t byteLength, | 105 size_t byteLength, |
| 106 const SkPath& path, | 106 const SkPath& path, |
| 107 const SkMatrix* matrix, | 107 const SkMatrix* matrix, |
| 108 const SkPaint&) OVERRIDE; | 108 const SkPaint&) OVERRIDE; |
| 109 virtual void onDrawTextBlob(const SkTextBlob* blob, |
| 110 SkScalar x, |
| 111 SkScalar y, |
| 112 const SkPaint& paint) OVERRIDE; |
| 109 virtual void onDrawDRRect(const SkRRect& outer, | 113 virtual void onDrawDRRect(const SkRRect& outer, |
| 110 const SkRRect& inner, | 114 const SkRRect& inner, |
| 111 const SkPaint&) OVERRIDE; | 115 const SkPaint&) OVERRIDE; |
| 112 | 116 |
| 113 void OnComplexClip(); | 117 void OnComplexClip(); |
| 114 | 118 |
| 115 private: | 119 private: |
| 116 typedef SkCanvas INHERITED; | 120 typedef SkCanvas INHERITED; |
| 117 | 121 |
| 118 int saved_stack_size_; | 122 int saved_stack_size_; |
| 119 int force_not_solid_stack_level_; | 123 int force_not_solid_stack_level_; |
| 120 int force_not_transparent_stack_level_; | 124 int force_not_transparent_stack_level_; |
| 121 | 125 |
| 122 bool is_forced_not_solid_; | 126 bool is_forced_not_solid_; |
| 123 bool is_forced_not_transparent_; | 127 bool is_forced_not_transparent_; |
| 124 bool is_solid_color_; | 128 bool is_solid_color_; |
| 125 SkColor color_; | 129 SkColor color_; |
| 126 bool is_transparent_; | 130 bool is_transparent_; |
| 127 int draw_op_count_; | 131 int draw_op_count_; |
| 128 }; | 132 }; |
| 129 | 133 |
| 130 } // namespace skia | 134 } // namespace skia |
| 131 | 135 |
| 132 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ | 136 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ |
| 133 | 137 |
| OLD | NEW |