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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 246673005: cc: Start using raster/eviction iterators in tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 21 matching lines...) Expand all
32 class CC_EXPORT LayerRasterTileIterator { 32 class CC_EXPORT LayerRasterTileIterator {
33 public: 33 public:
34 LayerRasterTileIterator(); 34 LayerRasterTileIterator();
35 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res); 35 LayerRasterTileIterator(PictureLayerImpl* layer, bool prioritize_low_res);
36 ~LayerRasterTileIterator(); 36 ~LayerRasterTileIterator();
37 37
38 Tile* operator*(); 38 Tile* operator*();
39 LayerRasterTileIterator& operator++(); 39 LayerRasterTileIterator& operator++();
40 operator bool() const; 40 operator bool() const;
41 41
42 bool HasTilesRequiredForActivation() const;
reveman 2014/05/20 23:01:00 Everything related to HasTilesRequiredForActivatio
vmpstr 2014/05/27 22:41:32 That's correct. I'm keeping it here just for testi
reveman 2014/05/28 16:04:12 See my comment on latest patch.
43
42 private: 44 private:
43 enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS }; 45 enum IteratorType { LOW_RES, HIGH_RES, NUM_ITERATORS };
44 46
45 PictureLayerImpl* layer_; 47 PictureLayerImpl* layer_;
46 48
47 struct IterationStage { 49 struct IterationStage {
48 IteratorType iterator_type; 50 IteratorType iterator_type;
49 TilePriority::PriorityBin tile_type; 51 TilePriority::PriorityBin tile_type;
50 }; 52 };
51 53
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 gfx::Size viewport_size_for_tile_priority_; 225 gfx::Size viewport_size_for_tile_priority_;
224 gfx::Transform screen_space_transform_for_tile_priority_; 226 gfx::Transform screen_space_transform_for_tile_priority_;
225 227
226 friend class PictureLayer; 228 friend class PictureLayer;
227 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 229 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
228 }; 230 };
229 231
230 } // namespace cc 232 } // namespace cc
231 233
232 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 234 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698