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