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

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

Issue 375923005: cc: Explicitly invalidate all dropped recordings on the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: invalid-resize: resizedeletestiles Created 6 years, 5 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/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 "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 13 matching lines...) Expand all
24 // Make this set of tilings match the same set of content scales from |other|. 24 // Make this set of tilings match the same set of content scales from |other|.
25 // Delete any tilings that don't meet |minimum_contents_scale|. Recreate 25 // Delete any tilings that don't meet |minimum_contents_scale|. Recreate
26 // any tiles that intersect |layer_invalidation|. Update the size of all 26 // any tiles that intersect |layer_invalidation|. Update the size of all
27 // tilings to |new_layer_bounds|. 27 // tilings to |new_layer_bounds|.
28 // Returns true if we had at least one high res tiling synced. 28 // Returns true if we had at least one high res tiling synced.
29 bool SyncTilings(const PictureLayerTilingSet& other, 29 bool SyncTilings(const PictureLayerTilingSet& other,
30 const gfx::Size& new_layer_bounds, 30 const gfx::Size& new_layer_bounds,
31 const Region& layer_invalidation, 31 const Region& layer_invalidation,
32 float minimum_contents_scale); 32 float minimum_contents_scale);
33 33
34 void RemoveTilesInRegion(const Region& region);
35
36 gfx::Size layer_bounds() const { return layer_bounds_; } 34 gfx::Size layer_bounds() const { return layer_bounds_; }
37 35
38 PictureLayerTiling* AddTiling(float contents_scale); 36 PictureLayerTiling* AddTiling(float contents_scale);
39 size_t num_tilings() const { return tilings_.size(); } 37 size_t num_tilings() const { return tilings_.size(); }
40 int NumHighResTilings() const; 38 int NumHighResTilings() const;
41 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; } 39 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
42 const PictureLayerTiling* tiling_at(size_t idx) const { 40 const PictureLayerTiling* tiling_at(size_t idx) const {
43 return tilings_[idx]; 41 return tilings_[idx];
44 } 42 }
45 43
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 gfx::Size layer_bounds_; 107 gfx::Size layer_bounds_;
110 ScopedPtrVector<PictureLayerTiling> tilings_; 108 ScopedPtrVector<PictureLayerTiling> tilings_;
111 109
112 friend class Iterator; 110 friend class Iterator;
113 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 111 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
114 }; 112 };
115 113
116 } // namespace cc 114 } // namespace cc
117 115
118 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 116 #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