Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: cc/resources/picture_pile_impl.h

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_unittest.cc ('k') | cc/resources/picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698