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

Unified Diff: content/common/view_messages.h

Issue 8498036: Delay UpdateRect until the SwapBuffers callback when accelerated compositing is on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: allow multiple update messages in flight Created 9 years 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
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index d81829552acd0b7da0fa35f2a6dbd7f91622e962..6d72a39fe582321e1c0af310f883c189687579c6 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -518,6 +518,10 @@ IPC_STRUCT_BEGIN(ViewHostMsg_UpdateRect_Params)
// which would indicate that this paint message is an ACK for multiple
// request messages.
IPC_STRUCT_MEMBER(int, flags)
+
+ // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this
+ // update. True for 2D painting, but false for accelerated compositing.
+ IPC_STRUCT_MEMBER(bool, needs_ack)
IPC_STRUCT_END()
IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
@@ -1427,6 +1431,10 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
ViewHostMsg_UpdateRect_Params)
+// Sent to unblock the browser's UI thread if it is waiting on an UpdateRect,
+// which may get delayed until the browser's UI unblocks.
+IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed)
+
// Sent by the renderer when accelerated compositing is enabled or disabled to
// notify the browser whether or not is should do painting.
IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698