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

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

Issue 666573002: CC: Decouple tile-grid-size from tile-size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 2 months 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/layers/picture_layer_unittest.cc ('k') | cc/test/fake_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BASE_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_BASE_H_
6 #define CC_RESOURCES_PICTURE_PILE_BASE_H_ 6 #define CC_RESOURCES_PICTURE_PILE_BASE_H_
7 7
8 #include <bitset> 8 #include <bitset>
9 #include <list> 9 #include <list>
10 #include <utility> 10 #include <utility>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool is_mask() const { return is_mask_; } 58 bool is_mask() const { return is_mask_; }
59 59
60 static void ComputeTileGridInfo(const gfx::Size& tile_grid_size, 60 static void ComputeTileGridInfo(const gfx::Size& tile_grid_size,
61 SkTileGridFactory::TileGridInfo* info); 61 SkTileGridFactory::TileGridInfo* info);
62 62
63 void SetTileGridSize(const gfx::Size& tile_grid_size); 63 void SetTileGridSize(const gfx::Size& tile_grid_size);
64 TilingData& tiling() { return tiling_; } 64 TilingData& tiling() { return tiling_; }
65 65
66 void AsValueInto(base::debug::TracedValue* array) const; 66 void AsValueInto(base::debug::TracedValue* array) const;
67 67
68 SkTileGridFactory::TileGridInfo GetTileGridInfoForTesting() const {
69 return tile_grid_info_;
70 }
71
68 protected: 72 protected:
69 class CC_EXPORT PictureInfo { 73 class CC_EXPORT PictureInfo {
70 public: 74 public:
71 enum { 75 enum {
72 INVALIDATION_FRAMES_TRACKED = 32 76 INVALIDATION_FRAMES_TRACKED = 32
73 }; 77 };
74 78
75 PictureInfo(); 79 PictureInfo();
76 ~PictureInfo(); 80 ~PictureInfo();
77 81
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 private: 136 private:
133 void SetBufferPixels(int buffer_pixels); 137 void SetBufferPixels(int buffer_pixels);
134 138
135 friend class base::RefCounted<PicturePileBase>; 139 friend class base::RefCounted<PicturePileBase>;
136 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); 140 DISALLOW_COPY_AND_ASSIGN(PicturePileBase);
137 }; 141 };
138 142
139 } // namespace cc 143 } // namespace cc
140 144
141 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_ 145 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_unittest.cc ('k') | cc/test/fake_picture_pile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698