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

Side by Side Diff: cc/picture_layer_tiling_set.cc

Issue 12096112: [cc] Trace detailed tile info when --trace-all-rendered-frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dont expose to extension yet Created 7 years, 10 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/proxy.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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 const gfx::Rect viewport_in_content_space, 259 const gfx::Rect viewport_in_content_space,
260 gfx::Size last_layer_bounds, 260 gfx::Size last_layer_bounds,
261 gfx::Size current_layer_bounds, 261 gfx::Size current_layer_bounds,
262 gfx::Size last_layer_content_bounds, 262 gfx::Size last_layer_content_bounds,
263 gfx::Size current_layer_content_bounds, 263 gfx::Size current_layer_content_bounds,
264 float last_layer_contents_scale, 264 float last_layer_contents_scale,
265 float current_layer_contents_scale, 265 float current_layer_contents_scale,
266 const gfx::Transform& last_screen_transform, 266 const gfx::Transform& last_screen_transform,
267 const gfx::Transform& current_screen_transform, 267 const gfx::Transform& current_screen_transform,
268 int current_source_frame_number, 268 int current_source_frame_number,
269 double current_frame_time) { 269 double current_frame_time,
270 bool store_screen_space_quads_on_tiles) {
270 gfx::RectF viewport_in_layer_space = gfx::ScaleRect( 271 gfx::RectF viewport_in_layer_space = gfx::ScaleRect(
271 viewport_in_content_space, 272 viewport_in_content_space,
272 1.f / current_layer_contents_scale, 273 1.f / current_layer_contents_scale,
273 1.f / current_layer_contents_scale); 274 1.f / current_layer_contents_scale);
274 275
275 for (size_t i = 0; i < tilings_.size(); ++i) { 276 for (size_t i = 0; i < tilings_.size(); ++i) {
276 tilings_[i]->UpdateTilePriorities( 277 tilings_[i]->UpdateTilePriorities(
277 tree, 278 tree,
278 device_viewport, 279 device_viewport,
279 viewport_in_layer_space, 280 viewport_in_layer_space,
280 last_layer_bounds, 281 last_layer_bounds,
281 current_layer_bounds, 282 current_layer_bounds,
282 last_layer_content_bounds, 283 last_layer_content_bounds,
283 current_layer_content_bounds, 284 current_layer_content_bounds,
284 last_layer_contents_scale, 285 last_layer_contents_scale,
285 current_layer_contents_scale, 286 current_layer_contents_scale,
286 last_screen_transform, 287 last_screen_transform,
287 current_screen_transform, 288 current_screen_transform,
288 current_source_frame_number, 289 current_source_frame_number,
289 current_frame_time); 290 current_frame_time,
291 store_screen_space_quads_on_tiles);
290 } 292 }
291 } 293 }
292 294
293 void PictureLayerTilingSet::DidBecomeActive() { 295 void PictureLayerTilingSet::DidBecomeActive() {
294 for (size_t i = 0; i < tilings_.size(); ++i) 296 for (size_t i = 0; i < tilings_.size(); ++i)
295 tilings_[i]->DidBecomeActive(); 297 tilings_[i]->DidBecomeActive();
296 } 298 }
297 299
298 } // namespace cc 300 } // namespace cc
OLDNEW
« no previous file with comments | « cc/picture_layer_tiling_set.h ('k') | cc/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698