Index: cc/trees/layer_tree_host_impl.cc |
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc |
index 219ea891051ebbc651e95f2f6438fbb9f9621096..7a58dadce7b6fef79b8bb4589e423dee0bee6785 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -349,11 +349,14 @@ bool LayerTreeHostImpl::CanDraw() const { |
// client_->OnCanDrawStateChanged in the proper places and update the |
// NotifyIfCanDrawChanged test. |
+ DLOG(INFO) << 1; |
+ |
if (!renderer_) { |
TRACE_EVENT_INSTANT0("cc", "LayerTreeHostImpl::CanDraw no renderer", |
TRACE_EVENT_SCOPE_THREAD); |
return false; |
} |
+ DLOG(INFO) << 2; |
// Must have an OutputSurface if |renderer_| is not NULL. |
DCHECK(output_surface_); |
@@ -365,33 +368,39 @@ bool LayerTreeHostImpl::CanDraw() const { |
TRACE_EVENT_SCOPE_THREAD); |
return false; |
} |
+ DLOG(INFO) << 3; |
if (output_surface_->capabilities().draw_and_swap_full_viewport_every_frame) |
return true; |
+ DLOG(INFO) << 4; |
- if (DrawViewportSize().IsEmpty()) { |
+ if (false && DrawViewportSize().IsEmpty()) { |
TRACE_EVENT_INSTANT0("cc", "LayerTreeHostImpl::CanDraw empty viewport", |
TRACE_EVENT_SCOPE_THREAD); |
return false; |
} |
+ DLOG(INFO) << 5; |
if (active_tree_->ViewportSizeInvalid()) { |
TRACE_EVENT_INSTANT0( |
"cc", "LayerTreeHostImpl::CanDraw viewport size recently changed", |
TRACE_EVENT_SCOPE_THREAD); |
return false; |
} |
+ DLOG(INFO) << 6; |
if (active_tree_->ContentsTexturesPurged()) { |
TRACE_EVENT_INSTANT0( |
"cc", "LayerTreeHostImpl::CanDraw contents textures purged", |
TRACE_EVENT_SCOPE_THREAD); |
return false; |
} |
+ DLOG(INFO) << 7; |
if (EvictedUIResourcesExist()) { |
TRACE_EVENT_INSTANT0( |
"cc", "LayerTreeHostImpl::CanDraw UI resources evicted not recreated", |
TRACE_EVENT_SCOPE_THREAD); |
return false; |
} |
+ DLOG(INFO) << 8; |
return true; |
} |
@@ -1405,6 +1414,7 @@ void LayerTreeHostImpl::DrawLayers(FrameData* frame, |
return; |
} |
+ DLOG(INFO) << "DrawLayers"; |
DCHECK(!frame->render_passes.empty()); |
fps_counter_->SaveTimeStamp(frame_begin_time, |
@@ -2102,6 +2112,7 @@ gfx::Size LayerTreeHostImpl::DrawViewportSize() const { |
} |
gfx::Rect LayerTreeHostImpl::DeviceViewport() const { |
+ DLOG(INFO) << external_viewport_.ToString(); |
if (external_viewport_.IsEmpty()) |
return gfx::Rect(device_viewport_size_); |