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

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

Issue 1937173002: Revert of Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 PP_Bool SetGetBuffer(int32_t shm_id) override; 48 PP_Bool SetGetBuffer(int32_t shm_id) override;
49 PP_Bool Flush(int32_t put_offset) override; 49 PP_Bool Flush(int32_t put_offset) override;
50 scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, 50 scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size,
51 int32_t* id) override; 51 int32_t* id) override;
52 PP_Bool DestroyTransferBuffer(int32_t id) override; 52 PP_Bool DestroyTransferBuffer(int32_t id) override;
53 gpu::CommandBuffer::State WaitForTokenInRange(int32_t start, 53 gpu::CommandBuffer::State WaitForTokenInRange(int32_t start,
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;
59 58
60 private: 59 private:
61 // PPB_Graphics3D_Shared overrides. 60 // PPB_Graphics3D_Shared overrides.
62 gpu::CommandBuffer* GetCommandBuffer() override; 61 gpu::CommandBuffer* GetCommandBuffer() override;
63 gpu::GpuControl* GetGpuControl() override; 62 gpu::GpuControl* GetGpuControl() override;
64 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override; 63 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override;
65 64
66 std::unique_ptr<PpapiCommandBufferProxy> command_buffer_; 65 std::unique_ptr<PpapiCommandBufferProxy> command_buffer_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(Graphics3D); 67 DISALLOW_COPY_AND_ASSIGN(Graphics3D);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 bool* success); 103 bool* success);
105 void OnMsgAsyncFlush(const HostResource& context, int32_t put_offset); 104 void OnMsgAsyncFlush(const HostResource& context, int32_t put_offset);
106 void OnMsgCreateTransferBuffer( 105 void OnMsgCreateTransferBuffer(
107 const HostResource& context, 106 const HostResource& context,
108 uint32_t size, 107 uint32_t size,
109 int32_t* id, 108 int32_t* id,
110 ppapi::proxy::SerializedHandle* transfer_buffer); 109 ppapi::proxy::SerializedHandle* transfer_buffer);
111 void OnMsgDestroyTransferBuffer(const HostResource& context, int32_t id); 110 void OnMsgDestroyTransferBuffer(const HostResource& context, int32_t id);
112 void OnMsgSwapBuffers(const HostResource& context, 111 void OnMsgSwapBuffers(const HostResource& context,
113 const gpu::SyncToken& sync_token); 112 const gpu::SyncToken& sync_token);
114 void OnMsgTakeFrontBuffer(const HostResource& context);
115 void OnMsgEnsureWorkVisible(const HostResource& context); 113 void OnMsgEnsureWorkVisible(const HostResource& context);
116 // Renderer->plugin message handlers. 114 // Renderer->plugin message handlers.
117 void OnMsgSwapBuffersACK(const HostResource& context, 115 void OnMsgSwapBuffersACK(const HostResource& context,
118 int32_t pp_error); 116 int32_t pp_error);
119 117
120 void SendSwapBuffersACKToPlugin(int32_t result, 118 void SendSwapBuffersACKToPlugin(int32_t result,
121 const HostResource& context); 119 const HostResource& context);
122 120
123 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 121 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
124 122
125 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 123 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
126 }; 124 };
127 125
128 } // namespace proxy 126 } // namespace proxy
129 } // namespace ppapi 127 } // namespace ppapi
130 128
131 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 129 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
132 130
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