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

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

Issue 12581004: Move InsertSyncPoint to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 9 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_graphics_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
6 #define PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 6 #define PPAPI_PROXY_PPB_GRAPHICS_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"
(...skipping 28 matching lines...) Expand all
39 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; 39 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
40 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE; 40 virtual PP_Graphics3DTrustedState FlushSync(int32_t put_offset) OVERRIDE;
41 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE; 41 virtual int32_t CreateTransferBuffer(uint32_t size) OVERRIDE;
42 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; 42 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE;
43 virtual PP_Bool GetTransferBuffer(int32_t id, 43 virtual PP_Bool GetTransferBuffer(int32_t id,
44 int* shm_handle, 44 int* shm_handle,
45 uint32_t* shm_size) OVERRIDE; 45 uint32_t* shm_size) OVERRIDE;
46 virtual PP_Graphics3DTrustedState FlushSyncFast( 46 virtual PP_Graphics3DTrustedState FlushSyncFast(
47 int32_t put_offset, 47 int32_t put_offset,
48 int32_t last_known_get) OVERRIDE; 48 int32_t last_known_get) OVERRIDE;
49 virtual uint32_t InsertSyncPoint() OVERRIDE;
49 50
50 private: 51 private:
51 class LockingCommandBuffer; 52 class LockingCommandBuffer;
52 53
53 // PPB_Graphics3D_Shared overrides. 54 // PPB_Graphics3D_Shared overrides.
54 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE; 55 virtual gpu::CommandBuffer* GetCommandBuffer() OVERRIDE;
55 virtual int32 DoSwapBuffers() OVERRIDE; 56 virtual int32 DoSwapBuffers() OVERRIDE;
56 virtual void PushAlreadyLocked() OVERRIDE; 57 virtual void PushAlreadyLocked() OVERRIDE;
57 virtual void PopAlreadyLocked() OVERRIDE; 58 virtual void PopAlreadyLocked() OVERRIDE;
58 59
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int32 put_offset); 99 int32 put_offset);
99 void OnMsgCreateTransferBuffer(const HostResource& context, 100 void OnMsgCreateTransferBuffer(const HostResource& context,
100 uint32 size, 101 uint32 size,
101 int32* id); 102 int32* id);
102 void OnMsgDestroyTransferBuffer(const HostResource& context, 103 void OnMsgDestroyTransferBuffer(const HostResource& context,
103 int32 id); 104 int32 id);
104 void OnMsgGetTransferBuffer(const HostResource& context, 105 void OnMsgGetTransferBuffer(const HostResource& context,
105 int32 id, 106 int32 id,
106 ppapi::proxy::SerializedHandle* transfer_buffer); 107 ppapi::proxy::SerializedHandle* transfer_buffer);
107 void OnMsgSwapBuffers(const HostResource& context); 108 void OnMsgSwapBuffers(const HostResource& context);
109 void OnMsgInsertSyncPoint(const HostResource& context, uint32* sync_point);
108 // Renderer->plugin message handlers. 110 // Renderer->plugin message handlers.
109 void OnMsgSwapBuffersACK(const HostResource& context, 111 void OnMsgSwapBuffersACK(const HostResource& context,
110 int32_t pp_error); 112 int32_t pp_error);
111 113
112 void SendSwapBuffersACKToPlugin(int32_t result, 114 void SendSwapBuffersACKToPlugin(int32_t result,
113 const HostResource& context); 115 const HostResource& context);
114 116
115 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 117 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 119 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
118 }; 120 };
119 121
120 } // namespace proxy 122 } // namespace proxy
121 } // namespace ppapi 123 } // namespace ppapi
122 124
123 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 125 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
124 126
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages.h ('k') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698