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 <set> | 10 #include <set> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 gfx::Size GetSize() const override; | 60 gfx::Size GetSize() const override; |
61 bool IsSolidColor() const override; | 61 bool IsSolidColor() const override; |
62 SkColor GetSolidColor() const override; | 62 SkColor GetSolidColor() const override; |
63 bool HasRecordings() const override; | 63 bool HasRecordings() const override; |
64 bool CanUseLCDText() const override; | 64 bool CanUseLCDText() const override; |
65 | 65 |
66 // Tracing functionality. | 66 // Tracing functionality. |
67 void DidBeginTracing() override; | 67 void DidBeginTracing() override; |
68 void AsValueInto(base::debug::TracedValue* array) const override; | 68 void AsValueInto(base::debug::TracedValue* array) const override; |
69 skia::RefPtr<SkPicture> GetFlattenedPicture() override; | 69 skia::RefPtr<SkPicture> GetFlattenedPicture() override; |
| 70 size_t GetPictureMemoryUsage() const override; |
70 | 71 |
71 // Iterator used to return SkPixelRefs from this picture pile. | 72 // Iterator used to return SkPixelRefs from this picture pile. |
72 // Public for testing. | 73 // Public for testing. |
73 class CC_EXPORT PixelRefIterator { | 74 class CC_EXPORT PixelRefIterator { |
74 public: | 75 public: |
75 PixelRefIterator(const gfx::Rect& content_rect, | 76 PixelRefIterator(const gfx::Rect& content_rect, |
76 float contents_scale, | 77 float contents_scale, |
77 const PicturePileImpl* picture_pile); | 78 const PicturePileImpl* picture_pile); |
78 ~PixelRefIterator(); | 79 ~PixelRefIterator(); |
79 | 80 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 gfx::Rect PaddedRect(const PictureMapKey& key) const; | 149 gfx::Rect PaddedRect(const PictureMapKey& key) const; |
149 | 150 |
150 bool should_attempt_to_use_distance_field_text_; | 151 bool should_attempt_to_use_distance_field_text_; |
151 | 152 |
152 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); | 153 DISALLOW_COPY_AND_ASSIGN(PicturePileImpl); |
153 }; | 154 }; |
154 | 155 |
155 } // namespace cc | 156 } // namespace cc |
156 | 157 |
157 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ | 158 #endif // CC_RESOURCES_PICTURE_PILE_IMPL_H_ |
OLD | NEW |