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

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

Issue 271533011: cc: Move tiling management out of draw properties calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + review commnets Created 6 years, 6 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
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 "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/base/scoped_ptr_vector.h" 9 #include "cc/base/scoped_ptr_vector.h"
10 #include "cc/resources/picture_layer_tiling.h" 10 #include "cc/resources/picture_layer_tiling.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Remove all tilings. 50 // Remove all tilings.
51 void RemoveAllTilings(); 51 void RemoveAllTilings();
52 52
53 // Remove one tiling. 53 // Remove one tiling.
54 void Remove(PictureLayerTiling* tiling); 54 void Remove(PictureLayerTiling* tiling);
55 55
56 // Remove all tiles; keep all tilings. 56 // Remove all tiles; keep all tilings.
57 void RemoveAllTiles(); 57 void RemoveAllTiles();
58 58
59 void UpdateTilePriorities(WhichTree tree, 59 void UpdateTilePriorities(WhichTree tree,
60 const gfx::Rect& visible_content_rect, 60 const gfx::Rect& visible_layer_rect,
61 float layer_contents_scale, 61 float layer_contents_scale,
62 double current_frame_time_in_seconds); 62 double current_frame_time_in_seconds);
63 63
64 void DidBecomeActive(); 64 void DidBecomeActive();
65 void DidBecomeRecycled(); 65 void DidBecomeRecycled();
66 66
67 // For a given rect, iterates through tiles that can fill it. If no 67 // For a given rect, iterates through tiles that can fill it. If no
68 // set of tiles with resources can fill the rect, then it will iterate 68 // set of tiles with resources can fill the rect, then it will iterate
69 // through null tiles with valid geometry_rect() until the rect is full. 69 // through null tiles with valid geometry_rect() until the rect is full.
70 // If all tiles have resources, the union of all geometry_rects will 70 // If all tiles have resources, the union of all geometry_rects will
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 gfx::Size layer_bounds_; 116 gfx::Size layer_bounds_;
117 ScopedPtrVector<PictureLayerTiling> tilings_; 117 ScopedPtrVector<PictureLayerTiling> tilings_;
118 118
119 friend class Iterator; 119 friend class Iterator;
120 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 120 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
121 }; 121 };
122 122
123 } // namespace cc 123 } // namespace cc
124 124
125 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 125 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698