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); |