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

Side by Side Diff: cc/picture_layer_tiling_set.cc

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_set.h ('k') | cc/test/fake_picture_layer_tiling_client.h » ('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 #include "cc/picture_layer_tiling_set.h" 5 #include "cc/picture_layer_tiling_set.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 namespace { 9 namespace {
10 10
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 tree, 255 tree,
256 device_viewport, 256 device_viewport,
257 layer_content_scale_x, 257 layer_content_scale_x,
258 layer_content_scale_y, 258 layer_content_scale_y,
259 last_screen_transform, 259 last_screen_transform,
260 current_screen_transform, 260 current_screen_transform,
261 time_delta); 261 time_delta);
262 } 262 }
263 } 263 }
264 264
265 void PictureLayerTilingSet::MoveTilePriorities(WhichTree src_tree, 265 void PictureLayerTilingSet::DidBecomeActive() {
266 WhichTree dst_tree) {
267 for (size_t i = 0; i < tilings_.size(); ++i) 266 for (size_t i = 0; i < tilings_.size(); ++i)
268 tilings_[i]->MoveTilePriorities(src_tree, dst_tree); 267 tilings_[i]->DidBecomeActive();
269 } 268 }
270 269
271 } // namespace cc 270 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | cc/test/fake_picture_layer_tiling_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698