Chromium Code Reviews| 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 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 | 41 |
| 42 skia::RefPtr<SkPicture> GetFlattenedPicture(); | 42 skia::RefPtr<SkPicture> GetFlattenedPicture(); |
| 43 | 43 |
| 44 struct Analysis { | 44 struct Analysis { |
| 45 Analysis(); | 45 Analysis(); |
| 46 | 46 |
| 47 bool is_solid_color; | 47 bool is_solid_color; |
| 48 bool is_transparent; | 48 bool is_transparent; |
| 49 bool is_cheap_to_raster; | 49 bool is_cheap_to_raster; |
| 50 SkColor solid_color; | 50 SkColor solid_color; |
| 51 | |
| 52 std::list<skia::LazyPixelRef*> lazy_pixel_refs; | |
|
Sami
2013/03/18 17:33:19
Can we also use the typedef from AnalysisCanvas he
| |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 void AnalyzeInRect(const gfx::Rect& content_rect, | 55 void AnalyzeInRect(const gfx::Rect& content_rect, |
| 54 float contents_scale, | 56 float contents_scale, |
| 55 Analysis* analysis); | 57 Analysis* analysis); |
| 56 | 58 |
| 57 protected: | 59 protected: |
| 58 friend class PicturePile; | 60 friend class PicturePile; |
| 59 | 61 |
| 60 PicturePileImpl(); | 62 PicturePileImpl(); |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 80 // This guarantees thread-safe access during the life | 82 // This guarantees thread-safe access during the life |
| 81 // time of a PicturePileImpl instance. | 83 // time of a PicturePileImpl instance. |
| 82 const ClonesForDrawing clones_for_drawing_; | 84 const ClonesForDrawing clones_for_drawing_; |
| 83 | 85 |
| 84 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 86 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 } // namespace cc | 89 } // namespace cc |
| 88 | 90 |
| 89 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 91 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
| OLD | NEW |