| 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 <stddef.h> |
| 9 #include <stdint.h> |
| 10 |
| 8 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 9 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
| 10 #include "third_party/skia/include/core/SkPicture.h" | 13 #include "third_party/skia/include/core/SkPicture.h" |
| 11 | 14 |
| 12 namespace skia { | 15 namespace skia { |
| 13 | 16 |
| 14 // Does not render anything, but gathers statistics about a region | 17 // Does not render anything, but gathers statistics about a region |
| 15 // (specified as a clip rectangle) of an SkPicture as the picture is | 18 // (specified as a clip rectangle) of an SkPicture as the picture is |
| 16 // played back through it. | 19 // played back through it. |
| 17 // To use: play a picture into the canvas, and then check result. | 20 // To use: play a picture into the canvas, and then check result. |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 bool is_solid_color_; | 131 bool is_solid_color_; |
| 129 SkColor color_; | 132 SkColor color_; |
| 130 bool is_transparent_; | 133 bool is_transparent_; |
| 131 int draw_op_count_; | 134 int draw_op_count_; |
| 132 }; | 135 }; |
| 133 | 136 |
| 134 } // namespace skia | 137 } // namespace skia |
| 135 | 138 |
| 136 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ | 139 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ |
| 137 | 140 |
| OLD | NEW |