| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 58 |
| 59 private: | 59 private: |
| 60 // PPB_Graphics3D_Shared overrides. | 60 // PPB_Graphics3D_Shared overrides. |
| 61 gpu::CommandBuffer* GetCommandBuffer() override; | 61 gpu::CommandBuffer* GetCommandBuffer() override; |
| 62 gpu::GpuControl* GetGpuControl() override; | 62 gpu::GpuControl* GetGpuControl() override; |
| 63 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override; | 63 int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override; |
| 64 | 64 |
| 65 scoped_ptr<PpapiCommandBufferProxy> command_buffer_; | 65 std::unique_ptr<PpapiCommandBufferProxy> command_buffer_; |
| 66 | 66 |
| 67 DISALLOW_COPY_AND_ASSIGN(Graphics3D); | 67 DISALLOW_COPY_AND_ASSIGN(Graphics3D); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 class PPB_Graphics3D_Proxy : public InterfaceProxy { | 70 class PPB_Graphics3D_Proxy : public InterfaceProxy { |
| 71 public: | 71 public: |
| 72 explicit PPB_Graphics3D_Proxy(Dispatcher* dispatcher); | 72 explicit PPB_Graphics3D_Proxy(Dispatcher* dispatcher); |
| 73 ~PPB_Graphics3D_Proxy(); | 73 ~PPB_Graphics3D_Proxy(); |
| 74 | 74 |
| 75 static PP_Resource CreateProxyResource( | 75 static PP_Resource CreateProxyResource( |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; | 121 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
| 122 | 122 |
| 123 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 123 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace proxy | 126 } // namespace proxy |
| 127 } // namespace ppapi | 127 } // namespace ppapi |
| 128 | 128 |
| 129 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 129 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
| 130 | 130 |
| OLD | NEW |