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

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: fix win compile 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
Index: content/common/view_messages.h
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 3b7eac5c611eef1b31a9b57833d2546424598616..4f21974af6fc37a41ed21ec51f105ae649a13396 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -510,6 +510,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)
@@ -1393,6 +1397,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,

Powered by Google App Engine
This is Rietveld 408576698