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

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

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.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_LAYER_TILING_SET_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Make this set of tilings match the same set of content scales from |other|. 56 // Make this set of tilings match the same set of content scales from |other|.
57 // Delete any tilings that don't meet |minimum_contents_scale|. Recreate 57 // Delete any tilings that don't meet |minimum_contents_scale|. Recreate
58 // any tiles that intersect |layer_invalidation|. Update the size of all 58 // any tiles that intersect |layer_invalidation|. Update the size of all
59 // tilings to |new_layer_bounds|. 59 // tilings to |new_layer_bounds|.
60 // Returns true if we had at least one high res tiling synced. 60 // Returns true if we had at least one high res tiling synced.
61 bool SyncTilings(const PictureLayerTilingSet& other, 61 bool SyncTilings(const PictureLayerTilingSet& other,
62 const gfx::Size& new_layer_bounds, 62 const gfx::Size& new_layer_bounds,
63 const Region& layer_invalidation, 63 const Region& layer_invalidation,
64 float minimum_contents_scale, 64 float minimum_contents_scale,
65 RasterSource* raster_source); 65 RasterSource* raster_source,
66 base::TimeTicks frame_time);
66 67
67 PictureLayerTiling* AddTiling(float contents_scale, 68 PictureLayerTiling* AddTiling(float contents_scale,
68 const gfx::Size& layer_bounds); 69 const gfx::Size& layer_bounds);
69 size_t num_tilings() const { return tilings_.size(); } 70 size_t num_tilings() const { return tilings_.size(); }
70 int NumHighResTilings() const; 71 int NumHighResTilings() const;
71 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } 72 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
72 const PictureLayerTiling* tiling_at(size_t idx) const { 73 const PictureLayerTiling* tiling_at(size_t idx) const {
73 return tilings_[idx]; 74 return tilings_[idx];
74 } 75 }
75 76
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 PictureLayerTilingClient* client_; 164 PictureLayerTilingClient* client_;
164 ScopedPtrVector<PictureLayerTiling> tilings_; 165 ScopedPtrVector<PictureLayerTiling> tilings_;
165 166
166 friend class Iterator; 167 friend class Iterator;
167 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 168 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
168 }; 169 };
169 170
170 } // namespace cc 171 } // namespace cc
171 172
172 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 173 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/resources/picture_layer_tiling_perftest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698