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

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

Issue 2566613002: [4/5] Add translated rasterization support for PictureLayerTilingSet & below (Closed)
Patch Set: Created 4 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
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_TILES_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_TILES_PICTURE_LAYER_TILING_SET_H_
6 #define CC_TILES_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_TILES_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 scoped_refptr<RasterSource> raster_source, 71 scoped_refptr<RasterSource> raster_source,
72 const Region& layer_invalidation, 72 const Region& layer_invalidation,
73 float minimum_contents_scale_key, 73 float minimum_contents_scale_key,
74 float maximum_contents_scale_key); 74 float maximum_contents_scale_key);
75 75
76 // This function is called on the sync tree right after commit. 76 // This function is called on the sync tree right after commit.
77 void UpdateRasterSourceDueToLCDChange( 77 void UpdateRasterSourceDueToLCDChange(
78 scoped_refptr<RasterSource> raster_source, 78 scoped_refptr<RasterSource> raster_source,
79 const Region& layer_invalidation); 79 const Region& layer_invalidation);
80 80
81 PictureLayerTiling* AddTiling(float contents_scale_key, 81 PictureLayerTiling* AddTiling(const ScaleTranslate2d& raster_transform,
82 scoped_refptr<RasterSource> raster_source); 82 scoped_refptr<RasterSource> raster_source);
83 size_t num_tilings() const { return tilings_.size(); } 83 size_t num_tilings() const { return tilings_.size(); }
84 int NumHighResTilings() const; 84 int NumHighResTilings() const;
85 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); } 85 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx].get(); }
86 const PictureLayerTiling* tiling_at(size_t idx) const { 86 const PictureLayerTiling* tiling_at(size_t idx) const {
87 return tilings_[idx].get(); 87 return tilings_[idx].get();
88 } 88 }
89 WhichTree tree() const { return tree_; } 89 WhichTree tree() const { return tree_; }
90 90
91 PictureLayerTiling* FindTilingWithScaleKey(float scale_key) const; 91 PictureLayerTiling* FindTilingWithScaleKey(float scale_key) const;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 friend class Iterator; 267 friend class Iterator;
268 268
269 private: 269 private:
270 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 270 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
271 }; 271 };
272 272
273 } // namespace cc 273 } // namespace cc
274 274
275 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_ 275 #endif // CC_TILES_PICTURE_LAYER_TILING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698