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

Unified Diff: content/common/gpu/image_transport_surface.cc

Issue 13926009: Avoid sending empty OnRepaint msgs and propagate window damage correctly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: content/common/gpu/image_transport_surface.cc
diff --git a/content/common/gpu/image_transport_surface.cc b/content/common/gpu/image_transport_surface.cc
index 18689b85dfa818f1bf3a6d1383b37514f097ae3d..1378f90df63591121c1cc9abda44518a5b7c6601 100644
--- a/content/common/gpu/image_transport_surface.cc
+++ b/content/common/gpu/image_transport_surface.cc
@@ -322,6 +322,7 @@ void PassThroughImageTransportSurface::OnResizeViewACK() {
DCHECK(transport_);
Resize(new_size_);
+ TRACE_EVENT_ASYNC_END0("gpu", "OnResize", this);
helper_->SetScheduled(true);
}
@@ -331,6 +332,8 @@ void PassThroughImageTransportSurface::OnResize(gfx::Size size) {
if (transport_) {
helper_->SendResizeView(size);
helper_->SetScheduled(false);
+ TRACE_EVENT_ASYNC_BEGIN2("gpu", "OnResize", this,
+ "width", size.width(), "height", size.height());
} else {
Resize(new_size_);
}

Powered by Google App Engine
This is Rietveld 408576698