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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/image_transport_surface.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for page rendering. 5 // IPC messages for page rendering.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "base/shared_memory.h" 9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // Indicates that this is a response to a ViewMsg_WasRestored message. 511 // Indicates that this is a response to a ViewMsg_WasRestored message.
512 // 512 //
513 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK 513 // ViewHostMsg_UpdateRect_Flags::IS_REPAINT_ACK
514 // Indicates that this is a response to a ViewMsg_Repaint message. 514 // Indicates that this is a response to a ViewMsg_Repaint message.
515 // 515 //
516 // If flags is zero, then this message corresponds to an unsolicited paint 516 // If flags is zero, then this message corresponds to an unsolicited paint
517 // request by the render view. Any of the above bits may be set in flags, 517 // request by the render view. Any of the above bits may be set in flags,
518 // which would indicate that this paint message is an ACK for multiple 518 // which would indicate that this paint message is an ACK for multiple
519 // request messages. 519 // request messages.
520 IPC_STRUCT_MEMBER(int, flags) 520 IPC_STRUCT_MEMBER(int, flags)
521
522 // Whether or not the renderer expects a ViewMsg_UpdateRect_ACK for this
523 // update. True for 2D painting, but false for accelerated compositing.
524 IPC_STRUCT_MEMBER(bool, needs_ack)
521 IPC_STRUCT_END() 525 IPC_STRUCT_END()
522 526
523 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params) 527 IPC_STRUCT_BEGIN(ViewHostMsg_DidFailProvisionalLoadWithError_Params)
524 // The frame ID for the failure report. 528 // The frame ID for the failure report.
525 IPC_STRUCT_MEMBER(int64, frame_id) 529 IPC_STRUCT_MEMBER(int64, frame_id)
526 // True if this is the top-most frame. 530 // True if this is the top-most frame.
527 IPC_STRUCT_MEMBER(bool, is_main_frame) 531 IPC_STRUCT_MEMBER(bool, is_main_frame)
528 // Error code as reported in the DidFailProvisionalLoad callback. 532 // Error code as reported in the DidFailProvisionalLoad callback.
529 IPC_STRUCT_MEMBER(int, error_code) 533 IPC_STRUCT_MEMBER(int, error_code)
530 // An error message generated from the error_code. This can be an empty 534 // An error message generated from the error_code. This can be an empty
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 // the tag sent along with ViewMsg_PaintAtSize. 1424 // the tag sent along with ViewMsg_PaintAtSize.
1421 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK, 1425 IPC_MESSAGE_ROUTED2(ViewHostMsg_PaintAtSize_ACK,
1422 int /* tag */, 1426 int /* tag */,
1423 gfx::Size /* size */) 1427 gfx::Size /* size */)
1424 1428
1425 // Sent to update part of the view. In response to this message, the host 1429 // Sent to update part of the view. In response to this message, the host
1426 // generates a ViewMsg_UpdateRect_ACK message. 1430 // generates a ViewMsg_UpdateRect_ACK message.
1427 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect, 1431 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateRect,
1428 ViewHostMsg_UpdateRect_Params) 1432 ViewHostMsg_UpdateRect_Params)
1429 1433
1434 // Sent to unblock the browser's UI thread if it is waiting on an UpdateRect,
1435 // which may get delayed until the browser's UI unblocks.
1436 IPC_MESSAGE_ROUTED0(ViewHostMsg_UpdateIsDelayed)
1437
1430 // Sent by the renderer when accelerated compositing is enabled or disabled to 1438 // Sent by the renderer when accelerated compositing is enabled or disabled to
1431 // notify the browser whether or not is should do painting. 1439 // notify the browser whether or not is should do painting.
1432 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing, 1440 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidActivateAcceleratedCompositing,
1433 bool /* true if the accelerated compositor is actve */) 1441 bool /* true if the accelerated compositor is actve */)
1434 1442
1435 // Acknowledges receipt of a ViewMsg_HandleInputEvent message. 1443 // Acknowledges receipt of a ViewMsg_HandleInputEvent message.
1436 IPC_MESSAGE_ROUTED2(ViewHostMsg_HandleInputEvent_ACK, 1444 IPC_MESSAGE_ROUTED2(ViewHostMsg_HandleInputEvent_ACK,
1437 WebKit::WebInputEvent::Type, 1445 WebKit::WebInputEvent::Type,
1438 bool /* processed */) 1446 bool /* processed */)
1439 1447
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 media::MediaLogEvent /* event */) 1958 media::MediaLogEvent /* event */)
1951 1959
1952 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message 1960 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message
1953 // being sent back. 1961 // being sent back.
1954 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) 1962 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse)
1955 1963
1956 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent 1964 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent
1957 // whenever the mouse is unlocked (which may or may not be caused by 1965 // whenever the mouse is unlocked (which may or may not be caused by
1958 // ViewHostMsg_UnlockMouse). 1966 // ViewHostMsg_UnlockMouse).
1959 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) 1967 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse)
OLDNEW
« 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