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

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

Issue 343653004: cc: Don't add new tilings while syncing a tiling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: managetilingsinsync: rebase 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.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 "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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Remove all tilings. 48 // Remove all tilings.
49 void RemoveAllTilings(); 49 void RemoveAllTilings();
50 50
51 // Remove one tiling. 51 // Remove one tiling.
52 void Remove(PictureLayerTiling* tiling); 52 void Remove(PictureLayerTiling* tiling);
53 53
54 // Remove all tiles; keep all tilings. 54 // Remove all tiles; keep all tilings.
55 void RemoveAllTiles(); 55 void RemoveAllTiles();
56 56
57 void UpdateTilePriorities(WhichTree tree,
alokp 2014/06/19 19:32:35 Dana: I did not understand why you had to remove t
danakj 2014/06/19 21:57:21 All it is now is a for loop, it used to compute a
58 const gfx::Rect& visible_layer_rect,
59 float layer_contents_scale,
60 double current_frame_time_in_seconds);
61
62 void DidBecomeActive(); 57 void DidBecomeActive();
63 void DidBecomeRecycled(); 58 void DidBecomeRecycled();
64 59
65 // For a given rect, iterates through tiles that can fill it. If no 60 // For a given rect, iterates through tiles that can fill it. If no
66 // set of tiles with resources can fill the rect, then it will iterate 61 // set of tiles with resources can fill the rect, then it will iterate
67 // through null tiles with valid geometry_rect() until the rect is full. 62 // through null tiles with valid geometry_rect() until the rect is full.
68 // If all tiles have resources, the union of all geometry_rects will 63 // If all tiles have resources, the union of all geometry_rects will
69 // exactly fill rect with no overlap. 64 // exactly fill rect with no overlap.
70 class CC_EXPORT CoverageIterator { 65 class CC_EXPORT CoverageIterator {
71 public: 66 public:
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 gfx::Size layer_bounds_; 109 gfx::Size layer_bounds_;
115 ScopedPtrVector<PictureLayerTiling> tilings_; 110 ScopedPtrVector<PictureLayerTiling> tilings_;
116 111
117 friend class Iterator; 112 friend class Iterator;
118 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 113 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
119 }; 114 };
120 115
121 } // namespace cc 116 } // namespace cc
122 117
123 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 118 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698