OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 5 #ifndef CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 6 #define CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 skia::RefPtr<SkPicture> GetFlattenedPicture(); | 56 skia::RefPtr<SkPicture> GetFlattenedPicture(); |
57 | 57 |
58 struct CC_EXPORT Analysis { | 58 struct CC_EXPORT Analysis { |
59 Analysis(); | 59 Analysis(); |
60 ~Analysis(); | 60 ~Analysis(); |
61 | 61 |
62 bool is_solid_color; | 62 bool is_solid_color; |
63 bool is_transparent; | 63 bool is_transparent; |
64 bool has_text; | 64 bool has_text; |
65 bool is_cheap_to_raster; | |
66 SkColor solid_color; | 65 SkColor solid_color; |
67 | 66 |
68 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; | 67 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; |
69 }; | 68 }; |
70 | 69 |
71 void AnalyzeInRect(gfx::Rect content_rect, | 70 void AnalyzeInRect(gfx::Rect content_rect, |
72 float contents_scale, | 71 float contents_scale, |
73 Analysis* analysis); | 72 Analysis* analysis); |
74 | 73 |
75 class CC_EXPORT PixelRefIterator { | 74 class CC_EXPORT PixelRefIterator { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // instance. This member variable must be last so that other member | 125 // instance. This member variable must be last so that other member |
127 // variables have already been initialized and can be clonable. | 126 // variables have already been initialized and can be clonable. |
128 const ClonesForDrawing clones_for_drawing_; | 127 const ClonesForDrawing clones_for_drawing_; |
129 | 128 |
130 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 129 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
131 }; | 130 }; |
132 | 131 |
133 } // namespace cc | 132 } // namespace cc |
134 | 133 |
135 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 134 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |