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

Side by Side Diff: cc/picture_layer_tiling.cc

Issue 12253021: [cc] A few tracing fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | cc/tile_priority.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 #include "cc/picture_layer_tiling.h" 5 #include "cc/picture_layer_tiling.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/math_util.h" 8 #include "cc/math_util.h"
9 #include "ui/gfx/point_conversions.h" 9 #include "ui/gfx/point_conversions.h"
10 #include "ui/gfx/rect_conversions.h" 10 #include "ui/gfx/rect_conversions.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 gfx::Size current_layer_bounds, 354 gfx::Size current_layer_bounds,
355 gfx::Size last_layer_content_bounds, 355 gfx::Size last_layer_content_bounds,
356 gfx::Size current_layer_content_bounds, 356 gfx::Size current_layer_content_bounds,
357 float last_layer_contents_scale, 357 float last_layer_contents_scale,
358 float current_layer_contents_scale, 358 float current_layer_contents_scale,
359 const gfx::Transform& last_screen_transform, 359 const gfx::Transform& last_screen_transform,
360 const gfx::Transform& current_screen_transform, 360 const gfx::Transform& current_screen_transform,
361 int current_source_frame_number, 361 int current_source_frame_number,
362 double current_frame_time, 362 double current_frame_time,
363 bool store_screen_space_quads_on_tiles) { 363 bool store_screen_space_quads_on_tiles) {
364 TRACE_EVENT0("cc", "PictureLayerTiling::UpdateTilePriorities");
365 if (ContentRect().IsEmpty()) 364 if (ContentRect().IsEmpty())
366 return; 365 return;
367 366
368 bool first_update_in_new_source_frame = 367 bool first_update_in_new_source_frame =
369 current_source_frame_number != last_source_frame_number_; 368 current_source_frame_number != last_source_frame_number_;
370 369
371 bool first_update_in_new_impl_frame = 370 bool first_update_in_new_impl_frame =
372 current_frame_time != last_impl_frame_time_; 371 current_frame_time != last_impl_frame_time_;
373 372
374 // In pending tree, this is always called. We update priorities: 373 // In pending tree, this is always called. We update priorities:
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 // and recreated, then that picture pile ref could exist indefinitely. To 524 // and recreated, then that picture pile ref could exist indefinitely. To
526 // prevent this, ask the client to update the pile to its own ref. This 525 // prevent this, ask the client to update the pile to its own ref. This
527 // will cause PicturePileImpls and their clones to get deleted once the 526 // will cause PicturePileImpls and their clones to get deleted once the
528 // corresponding PictureLayerImpl and any in flight raster jobs go out of 527 // corresponding PictureLayerImpl and any in flight raster jobs go out of
529 // scope. 528 // scope.
530 client_->UpdatePile(it->second); 529 client_->UpdatePile(it->second);
531 } 530 }
532 } 531 }
533 532
534 } // namespace cc 533 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/tile_priority.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698