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

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

Issue 253943002: Remove CommandBuffer::GetState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: I forgot Poland^Wmojo Created 6 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_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/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 17 matching lines...) Expand all
28 28
29 class Graphics3D : public PPB_Graphics3D_Shared { 29 class Graphics3D : public PPB_Graphics3D_Shared {
30 public: 30 public:
31 explicit Graphics3D(const HostResource& resource); 31 explicit Graphics3D(const HostResource& resource);
32 virtual ~Graphics3D(); 32 virtual ~Graphics3D();
33 33
34 bool Init(gpu::gles2::GLES2Implementation* share_gles2); 34 bool Init(gpu::gles2::GLES2Implementation* share_gles2);
35 35
36 // Graphics3DTrusted API. These are not implemented in the proxy. 36 // Graphics3DTrusted API. These are not implemented in the proxy.
37 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; 37 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE;
38 virtual gpu::CommandBuffer::State GetState() OVERRIDE;
39 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; 38 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE;
40 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, 39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
41 int32* id) OVERRIDE; 40 int32* id) OVERRIDE;
42 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE; 41 virtual PP_Bool DestroyTransferBuffer(int32_t id) OVERRIDE;
43 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, 42 virtual gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
44 int32_t end) OVERRIDE; 43 int32_t end) OVERRIDE;
45 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, 44 virtual gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
46 int32_t end) 45 int32_t end)
47 OVERRIDE; 46 OVERRIDE;
48 virtual uint32_t InsertSyncPoint() OVERRIDE; 47 virtual uint32_t InsertSyncPoint() OVERRIDE;
(...skipping 24 matching lines...) Expand all
73 72
74 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; 73 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D;
75 74
76 private: 75 private:
77 void OnMsgCreate(PP_Instance instance, 76 void OnMsgCreate(PP_Instance instance,
78 HostResource share_context, 77 HostResource share_context,
79 const std::vector<int32_t>& attribs, 78 const std::vector<int32_t>& attribs,
80 HostResource* result); 79 HostResource* result);
81 void OnMsgSetGetBuffer(const HostResource& context, 80 void OnMsgSetGetBuffer(const HostResource& context,
82 int32 id); 81 int32 id);
83 void OnMsgGetState(const HostResource& context,
84 gpu::CommandBuffer::State* state,
85 bool* success);
86 void OnMsgWaitForTokenInRange(const HostResource& context, 82 void OnMsgWaitForTokenInRange(const HostResource& context,
87 int32 start, 83 int32 start,
88 int32 end, 84 int32 end,
89 gpu::CommandBuffer::State* state, 85 gpu::CommandBuffer::State* state,
90 bool* success); 86 bool* success);
91 void OnMsgWaitForGetOffsetInRange(const HostResource& context, 87 void OnMsgWaitForGetOffsetInRange(const HostResource& context,
92 int32 start, 88 int32 start,
93 int32 end, 89 int32 end,
94 gpu::CommandBuffer::State* state, 90 gpu::CommandBuffer::State* state,
95 bool* success); 91 bool* success);
(...skipping 17 matching lines...) Expand all
113 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 109 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
114 110
115 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 111 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
116 }; 112 };
117 113
118 } // namespace proxy 114 } // namespace proxy
119 } // namespace ppapi 115 } // namespace ppapi
120 116
121 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 117 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
122 118
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