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

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

Issue 2086363004: mac: Finish plumbing for Pepper3D Image Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp98_native_gmb
Patch Set: Rebase error. Created 4 years, 5 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
« 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int32_t end) override; 54 int32_t end) override;
55 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start, 55 gpu::CommandBuffer::State WaitForGetOffsetInRange(int32_t start,
56 int32_t end) override; 56 int32_t end) override;
57 void EnsureWorkVisible() override; 57 void EnsureWorkVisible() override;
58 void TakeFrontBuffer() override; 58 void TakeFrontBuffer() override;
59 59
60 private: 60 private:
61 // PPB_Graphics3D_Shared overrides. 61 // PPB_Graphics3D_Shared overrides.
62 gpu::CommandBuffer* GetCommandBuffer() override; 62 gpu::CommandBuffer* GetCommandBuffer() override;
63 gpu::GpuControl* GetGpuControl() override; 63 gpu::GpuControl* GetGpuControl() override;
64 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override; 64 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token,
65 int32_t width,
66 int32_t height) override;
65 67
66 std::unique_ptr<PpapiCommandBufferProxy> command_buffer_; 68 std::unique_ptr<PpapiCommandBufferProxy> command_buffer_;
67 69
68 DISALLOW_COPY_AND_ASSIGN(Graphics3D); 70 DISALLOW_COPY_AND_ASSIGN(Graphics3D);
69 }; 71 };
70 72
71 class PPB_Graphics3D_Proxy : public InterfaceProxy { 73 class PPB_Graphics3D_Proxy : public InterfaceProxy {
72 public: 74 public:
73 explicit PPB_Graphics3D_Proxy(Dispatcher* dispatcher); 75 explicit PPB_Graphics3D_Proxy(Dispatcher* dispatcher);
74 ~PPB_Graphics3D_Proxy(); 76 ~PPB_Graphics3D_Proxy();
(...skipping 28 matching lines...) Expand all
103 gpu::CommandBuffer::State* state, 105 gpu::CommandBuffer::State* state,
104 bool* success); 106 bool* success);
105 void OnMsgAsyncFlush(const HostResource& context, int32_t put_offset); 107 void OnMsgAsyncFlush(const HostResource& context, int32_t put_offset);
106 void OnMsgCreateTransferBuffer( 108 void OnMsgCreateTransferBuffer(
107 const HostResource& context, 109 const HostResource& context,
108 uint32_t size, 110 uint32_t size,
109 int32_t* id, 111 int32_t* id,
110 ppapi::proxy::SerializedHandle* transfer_buffer); 112 ppapi::proxy::SerializedHandle* transfer_buffer);
111 void OnMsgDestroyTransferBuffer(const HostResource& context, int32_t id); 113 void OnMsgDestroyTransferBuffer(const HostResource& context, int32_t id);
112 void OnMsgSwapBuffers(const HostResource& context, 114 void OnMsgSwapBuffers(const HostResource& context,
113 const gpu::SyncToken& sync_token); 115 const gpu::SyncToken& sync_token,
116 int32_t width,
117 int32_t height);
114 void OnMsgTakeFrontBuffer(const HostResource& context); 118 void OnMsgTakeFrontBuffer(const HostResource& context);
115 void OnMsgEnsureWorkVisible(const HostResource& context); 119 void OnMsgEnsureWorkVisible(const HostResource& context);
116 // Renderer->plugin message handlers. 120 // Renderer->plugin message handlers.
117 void OnMsgSwapBuffersACK(const HostResource& context, 121 void OnMsgSwapBuffersACK(const HostResource& context,
118 int32_t pp_error); 122 int32_t pp_error);
119 123
120 void SendSwapBuffersACKToPlugin(int32_t result, 124 void SendSwapBuffersACKToPlugin(int32_t result,
121 const HostResource& context); 125 const HostResource& context);
122 126
123 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 127 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 129 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
126 }; 130 };
127 131
128 } // namespace proxy 132 } // namespace proxy
129 } // namespace ppapi 133 } // namespace ppapi
130 134
131 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 135 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
132 136
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