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

Unified Diff: cc/resources/picture_layer_tiling.cc

Issue 14883003: cc: Fix impl-side painting flashing due to missing tiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 8 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 | « cc/resources/picture_layer_tiling.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling.cc
diff --git a/cc/resources/picture_layer_tiling.cc b/cc/resources/picture_layer_tiling.cc
index ebc548cc007d18eef5cb5959783ed49e374df046..85249e2598351219a16106c914e714bd8d7af513 100644
--- a/cc/resources/picture_layer_tiling.cc
+++ b/cc/resources/picture_layer_tiling.cc
@@ -288,10 +288,15 @@ void PictureLayerTiling::UpdateTilePriorities(
double current_frame_time_in_seconds,
bool store_screen_space_quads_on_tiles,
size_t max_tiles_for_interest_area) {
- if (ContentRect().IsEmpty())
+ if (!NeedsUpdateForFrameAtTime(current_frame_time_in_seconds)) {
+ // This should never be zero for the purposes of has_ever_been_updated().
+ DCHECK_NE(current_frame_time_in_seconds, 0.0);
return;
- if (!NeedsUpdateForFrameAtTime(current_frame_time_in_seconds))
+ }
+ if (ContentRect().IsEmpty()) {
+ last_impl_frame_time_in_seconds_ = current_frame_time_in_seconds;
return;
+ }
gfx::Rect viewport_in_content_space =
gfx::ToEnclosingRect(gfx::ScaleRect(viewport_in_layer_space,
« no previous file with comments | « cc/resources/picture_layer_tiling.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698