OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |