Commit 5dba0c6a authored by danakj's avatar danakj Committed by Commit bot

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}
parent 2fe989c4
...@@ -2195,6 +2195,10 @@ void LayerTreeHostImpl::ReleaseGL() { ...@@ -2195,6 +2195,10 @@ void LayerTreeHostImpl::ReleaseGL() {
void LayerTreeHostImpl::SetViewportSize(const gfx::Size& device_viewport_size) { void LayerTreeHostImpl::SetViewportSize(const gfx::Size& device_viewport_size) {
if (device_viewport_size == device_viewport_size_) if (device_viewport_size == device_viewport_size_)
return; return;
TRACE_EVENT_INSTANT2("cc", "LayerTreeHostImpl::SetViewportSize",
TRACE_EVENT_SCOPE_THREAD, "width",
device_viewport_size.width(), "height",
device_viewport_size.height());
if (pending_tree_) if (pending_tree_)
active_tree_->SetViewportSizeInvalid(); active_tree_->SetViewportSizeInvalid();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment