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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 21839004: cc: Push valid property values when CalcDrawProps skips layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pushpaintprops: Simpler to dcheck in TiledLayer Created 7 years, 5 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
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 9f4e5b56cf57eae0416b784dc6f63055d5ea031e..9d51042d30a9c03489ffc00256358c432c267ef9 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -678,6 +678,9 @@ bool LayerTreeHost::UpdateLayers(ResourceUpdateQueue* queue,
if (!root_layer())
return false;
+ if (device_viewport_size().IsEmpty())
enne (OOO) 2013/08/02 17:00:48 This is wrong for WebView. You can't just add it
boliu 2013/08/02 17:44:50 Not commenting on correctness, just a question: I
enne (OOO) 2013/08/02 17:47:41 It is possible, but in that case the compositor th
danakj 2013/08/02 18:35:11 I think checkerboards should be fine in this case.
enne (OOO) 2013/08/02 18:41:49 Checkerboarding would be wrong for software raster
danakj 2013/08/02 21:49:13 Ah, okie.
+ return false;
+
if (contents_texture_manager_ && memory_allocation_limit_bytes) {
contents_texture_manager_->SetMaxMemoryLimitBytes(
memory_allocation_limit_bytes);

Powered by Google App Engine
This is Rietveld 408576698