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

Unified Diff: content/common/view_message_enums.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: . Created 9 years, 1 month 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_message_enums.h
diff --git a/content/common/view_message_enums.h b/content/common/view_message_enums.h
index f1538c8fc88b586960f18fd4e817a89088ef4134..a9a49341e0c7990d028088da5009b76b9dac887e 100644
--- a/content/common/view_message_enums.h
+++ b/content/common/view_message_enums.h
@@ -103,6 +103,7 @@ struct ViewHostMsg_UpdateRect_Flags {
IS_RESIZE_ACK = 1 << 0,
IS_RESTORE_ACK = 1 << 1,
IS_REPAINT_ACK = 1 << 2,
+ NEEDS_ACK = 1 << 3,
};
static bool is_resize_ack(int flags) {
return (flags & IS_RESIZE_ACK) != 0;
@@ -113,6 +114,9 @@ struct ViewHostMsg_UpdateRect_Flags {
static bool is_repaint_ack(int flags) {
return (flags & IS_REPAINT_ACK) != 0;
}
+ static bool needs_ack(int flags) {
darin (slow to review) 2011/11/15 08:06:04 it seems a bit awkward to put this flag here. the
piman 2011/11/16 01:00:55 Done.
+ return (flags & NEEDS_ACK) != 0;
+ }
};
struct ViewMsg_Navigate_Type {

Powered by Google App Engine
This is Rietveld 408576698