| OLD | NEW |
| 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" |
| 11 #include "gpu/command_buffer/common/command_buffer.h" | 11 #include "gpu/command_buffer/common/command_buffer.h" |
| 12 #include "ppapi/c/pp_graphics_3d.h" | 12 #include "ppapi/c/pp_graphics_3d.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/proxy/interface_proxy.h" | 14 #include "ppapi/proxy/interface_proxy.h" |
| 15 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 15 #include "ppapi/proxy/proxy_completion_callback_factory.h" | 16 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
| 16 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 17 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
| 17 #include "ppapi/shared_impl/resource.h" | 18 #include "ppapi/shared_impl/resource.h" |
| 18 #include "ppapi/utility/completion_callback_factory.h" | 19 #include "ppapi/utility/completion_callback_factory.h" |
| 19 | 20 |
| 20 namespace ppapi { | 21 namespace ppapi { |
| 21 | 22 |
| 22 class HostResource; | 23 class HostResource; |
| 23 | 24 |
| 24 namespace proxy { | 25 namespace proxy { |
| 25 | 26 |
| 26 class SerializedHandle; | 27 class SerializedHandle; |
| 27 class PpapiCommandBufferProxy; | 28 class PpapiCommandBufferProxy; |
| 28 | 29 |
| 29 class Graphics3D : public PPB_Graphics3D_Shared { | 30 class PPAPI_PROXY_EXPORT Graphics3D : public PPB_Graphics3D_Shared { |
| 30 public: | 31 public: |
| 31 explicit Graphics3D(const HostResource& resource); | 32 explicit Graphics3D(const HostResource& resource); |
| 32 virtual ~Graphics3D(); | 33 virtual ~Graphics3D(); |
| 33 | 34 |
| 34 bool Init(gpu::gles2::GLES2Implementation* share_gles2); | 35 bool Init(gpu::gles2::GLES2Implementation* share_gles2); |
| 35 | 36 |
| 36 // Graphics3DTrusted API. These are not implemented in the proxy. | 37 // Graphics3DTrusted API. These are not implemented in the proxy. |
| 37 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; | 38 virtual PP_Bool SetGetBuffer(int32_t shm_id) OVERRIDE; |
| 38 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; | 39 virtual PP_Bool Flush(int32_t put_offset) OVERRIDE; |
| 39 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, | 40 virtual scoped_refptr<gpu::Buffer> CreateTransferBuffer(uint32_t size, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; | 110 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 112 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace proxy | 115 } // namespace proxy |
| 115 } // namespace ppapi | 116 } // namespace ppapi |
| 116 | 117 |
| 117 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 118 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
| 118 | 119 |
| OLD | NEW |