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

Side by Side Diff: ppapi/proxy/ppb_context_3d_proxy.h

Issue 6883179: Rework FlushSync to return early if commands have been processed since the last update (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: style Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_context_3d_proxy.cc » ('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) 2010 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 #ifndef PPAPI_PPB_CONTEXT_3D_PROXY_H_ 5 #ifndef PPAPI_PPB_CONTEXT_3D_PROXY_H_
6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_ 6 #define PPAPI_PPB_CONTEXT_3D_PROXY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "gpu/command_buffer/common/command_buffer.h" 11 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 const HostResource& draw, 93 const HostResource& draw,
94 const HostResource& read, 94 const HostResource& read,
95 int32_t* result); 95 int32_t* result);
96 void OnMsgInitialize(const HostResource& context, 96 void OnMsgInitialize(const HostResource& context,
97 int32 size, 97 int32 size,
98 base::SharedMemoryHandle* ring_buffer); 98 base::SharedMemoryHandle* ring_buffer);
99 void OnMsgGetState(const HostResource& context, 99 void OnMsgGetState(const HostResource& context,
100 gpu::CommandBuffer::State* state); 100 gpu::CommandBuffer::State* state);
101 void OnMsgFlush(const HostResource& context, 101 void OnMsgFlush(const HostResource& context,
102 int32 put_offset, 102 int32 put_offset,
103 int32 last_known_get,
103 gpu::CommandBuffer::State* state); 104 gpu::CommandBuffer::State* state);
104 void OnMsgAsyncFlush(const HostResource& context, 105 void OnMsgAsyncFlush(const HostResource& context,
105 int32 put_offset); 106 int32 put_offset);
106 void OnMsgCreateTransferBuffer(const HostResource& context, 107 void OnMsgCreateTransferBuffer(const HostResource& context,
107 int32 size, 108 int32 size,
108 int32* id); 109 int32* id);
109 void OnMsgDestroyTransferBuffer(const HostResource& context, 110 void OnMsgDestroyTransferBuffer(const HostResource& context,
110 int32 id); 111 int32 id);
111 void OnMsgGetTransferBuffer(const HostResource& context, 112 void OnMsgGetTransferBuffer(const HostResource& context,
112 int32 id, 113 int32 id,
113 base::SharedMemoryHandle* transfer_buffer, 114 base::SharedMemoryHandle* transfer_buffer,
114 uint32* size); 115 uint32* size);
115 }; 116 };
116 117
117 } // namespace proxy 118 } // namespace proxy
118 } // namespace pp 119 } // namespace pp
119 120
120 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_ 121 #endif // PPAPI_PPB_CONTEXT_3D_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_context_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698