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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 std::list<skia::LazyPixelRef*>& pixel_refs); | 43 std::list<skia::LazyPixelRef*>& pixel_refs); |
44 | 44 |
45 skia::RefPtr<SkPicture> GetFlattenedPicture(); | 45 skia::RefPtr<SkPicture> GetFlattenedPicture(); |
46 | 46 |
47 struct Analysis { | 47 struct Analysis { |
48 Analysis(); | 48 Analysis(); |
49 ~Analysis(); | 49 ~Analysis(); |
50 | 50 |
51 bool is_solid_color; | 51 bool is_solid_color; |
52 bool is_transparent; | 52 bool is_transparent; |
| 53 bool has_text; |
53 bool is_cheap_to_raster; | 54 bool is_cheap_to_raster; |
54 SkColor solid_color; | 55 SkColor solid_color; |
55 | 56 |
56 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; | 57 skia::AnalysisCanvas::LazyPixelRefList lazy_pixel_refs; |
57 }; | 58 }; |
58 | 59 |
59 void AnalyzeInRect(const gfx::Rect& content_rect, | 60 void AnalyzeInRect(const gfx::Rect& content_rect, |
60 float contents_scale, | 61 float contents_scale, |
61 Analysis* analysis); | 62 Analysis* analysis); |
62 | 63 |
(...skipping 26 matching lines...) Expand all Loading... |
89 // instance. This member variable must be last so that other member | 90 // instance. This member variable must be last so that other member |
90 // variables have already been initialized and can be clonable. | 91 // variables have already been initialized and can be clonable. |
91 const ClonesForDrawing clones_for_drawing_; | 92 const ClonesForDrawing clones_for_drawing_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 94 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace cc | 97 } // namespace cc |
97 | 98 |
98 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 99 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |