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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 667053003: cc: Consider visible rect for update tile priority early out. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index fd8a50772a6372fc9bf87184205683a4e89f5edd..243bd73b9616a86ce3ca5873bfe15f321c575a49 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -494,21 +494,6 @@ void PictureLayerImpl::UpdateTilePriorities(
TRACE_EVENT0("cc", "PictureLayerImpl::UpdateTilePriorities");
- double current_frame_time_in_seconds =
- (layer_tree_impl()->CurrentBeginFrameArgs().frame_time -
- base::TimeTicks()).InSecondsF();
mithro-old 2014/10/27 13:20:36 Just a FYI, these lines will totally not do what y
-
- bool tiling_needs_update = false;
- for (size_t i = 0; i < tilings_->num_tilings(); ++i) {
- if (tilings_->tiling_at(i)->NeedsUpdateForFrameAtTime(
- current_frame_time_in_seconds)) {
- tiling_needs_update = true;
- break;
- }
- }
- if (!tiling_needs_update)
- return;
-
gfx::Rect viewport_rect_in_layer_space =
GetViewportForTilePriorityInContentSpace();
WhichTree tree =
« no previous file with comments | « no previous file | cc/resources/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698