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

Side by Side Diff: cc/picture_layer_tiling_set.h

Issue 11953005: cc: Update picture pile on tiles to prevent memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename MoveTilePriorities to DidBecomeActive Created 7 years, 11 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/picture_layer_tiling.cc ('k') | cc/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_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_PICTURE_LAYER_TILING_SET_H_
6 #define CC_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include "cc/picture_layer_tiling.h" 8 #include "cc/picture_layer_tiling.h"
9 #include "cc/region.h" 9 #include "cc/region.h"
10 #include "cc/scoped_ptr_vector.h" 10 #include "cc/scoped_ptr_vector.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 void UpdateTilePriorities( 47 void UpdateTilePriorities(
48 WhichTree tree, 48 WhichTree tree,
49 const gfx::Size& device_viewport, 49 const gfx::Size& device_viewport,
50 float layer_content_scale_x, 50 float layer_content_scale_x,
51 float layer_content_scale_y, 51 float layer_content_scale_y,
52 const gfx::Transform& last_screen_transform, 52 const gfx::Transform& last_screen_transform,
53 const gfx::Transform& current_screen_transform, 53 const gfx::Transform& current_screen_transform,
54 double time_delta); 54 double time_delta);
55 55
56 // Copies the src_tree priority into the dst_tree priority for all tiles. 56 void DidBecomeActive();
57 // The src_tree priority is reset to the lowest priority possible.
58 void MoveTilePriorities(WhichTree src_tree, WhichTree dst_tree);
59 57
60 // For a given rect, iterates through tiles that can fill it. If no 58 // For a given rect, iterates through tiles that can fill it. If no
61 // set of tiles with resources can fill the rect, then it will iterate 59 // set of tiles with resources can fill the rect, then it will iterate
62 // through null tiles with valid geometry_rect() until the rect is full. 60 // through null tiles with valid geometry_rect() until the rect is full.
63 // If all tiles have resources, the union of all geometry_rects will 61 // If all tiles have resources, the union of all geometry_rects will
64 // exactly fill rect with no overlap. 62 // exactly fill rect with no overlap.
65 class CC_EXPORT Iterator { 63 class CC_EXPORT Iterator {
66 public: 64 public:
67 Iterator( 65 Iterator(
68 const PictureLayerTilingSet* set, 66 const PictureLayerTilingSet* set,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 gfx::Size layer_bounds_; 105 gfx::Size layer_bounds_;
108 ScopedPtrVector<PictureLayerTiling> tilings_; 106 ScopedPtrVector<PictureLayerTiling> tilings_;
109 Region invalidation_; 107 Region invalidation_;
110 108
111 friend class Iterator; 109 friend class Iterator;
112 }; 110 };
113 111
114 } // namespace cc 112 } // namespace cc
115 113
116 #endif // CC_PICTURE_LAYER_TILING_SET_H_ 114 #endif // CC_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling.cc ('k') | cc/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698