From 5dba0c6a2a55bfc0387d014c0c17bd9f57d4b9eb Mon Sep 17 00:00:00 2001 From: danakj Date: Wed, 4 Feb 2015 17:52:32 -0800 Subject: [PATCH] cc: Trace the viewport size changing. This will help in tracking down window resize bugs. R=enne, vmpstr BUG=454333 Review URL: https://codereview.chromium.org/864713004 Cr-Commit-Position: refs/heads/master@{#314715} --- cc/trees/layer_tree_host_impl.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc index ec062fb74718..b5509a7b5007 100644 --- a/cc/trees/layer_tree_host_impl.cc +++ b/cc/trees/layer_tree_host_impl.cc @@ -2195,6 +2195,10 @@ void LayerTreeHostImpl::ReleaseGL() { void LayerTreeHostImpl::SetViewportSize(const gfx::Size& device_viewport_size) { if (device_viewport_size == device_viewport_size_) return; + TRACE_EVENT_INSTANT2("cc", "LayerTreeHostImpl::SetViewportSize", + TRACE_EVENT_SCOPE_THREAD, "width", + device_viewport_size.width(), "height", + device_viewport_size.height()); if (pending_tree_) active_tree_->SetViewportSizeInvalid(); -- 2.11.4.GIT