| 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> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "gpu/command_buffer/common/command_buffer.h" | 13 #include "gpu/command_buffer/common/command_buffer.h" |
| 14 #include "gpu/command_buffer/common/command_buffer_id.h" | 14 #include "gpu/command_buffer/common/command_buffer_id.h" |
| 15 #include "ppapi/c/pp_graphics_3d.h" | 15 #include "ppapi/c/pp_graphics_3d.h" |
| 16 #include "ppapi/c/pp_instance.h" | 16 #include "ppapi/c/pp_instance.h" |
| 17 #include "ppapi/proxy/interface_proxy.h" | 17 #include "ppapi/proxy/interface_proxy.h" |
| 18 #include "ppapi/proxy/ppapi_proxy_export.h" | 18 #include "ppapi/proxy/ppapi_proxy_export.h" |
| 19 #include "ppapi/proxy/proxy_completion_callback_factory.h" | 19 #include "ppapi/proxy/proxy_completion_callback_factory.h" |
| 20 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" | 20 #include "ppapi/shared_impl/ppb_graphics_3d_shared.h" |
| 21 #include "ppapi/shared_impl/resource.h" | 21 #include "ppapi/shared_impl/resource.h" |
| 22 #include "ppapi/utility/completion_callback_factory.h" | 22 #include "ppapi/utility/completion_callback_factory.h" |
| 23 | 23 |
| 24 namespace gpu { | 24 namespace gpu { |
| 25 namespace gles2 { |
| 26 struct ContextCreationAttribHelper; |
| 27 } |
| 25 struct Capabilities; | 28 struct Capabilities; |
| 26 } | 29 } |
| 27 | 30 |
| 28 namespace ppapi { | 31 namespace ppapi { |
| 29 | 32 |
| 30 class HostResource; | 33 class HostResource; |
| 31 | 34 |
| 32 namespace proxy { | 35 namespace proxy { |
| 33 | 36 |
| 34 class SerializedHandle; | 37 class SerializedHandle; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const int32_t* attrib_list); | 84 const int32_t* attrib_list); |
| 82 | 85 |
| 83 // InterfaceProxy implementation. | 86 // InterfaceProxy implementation. |
| 84 bool OnMessageReceived(const IPC::Message& msg) override; | 87 bool OnMessageReceived(const IPC::Message& msg) override; |
| 85 | 88 |
| 86 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; | 89 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; |
| 87 | 90 |
| 88 private: | 91 private: |
| 89 void OnMsgCreate(PP_Instance instance, | 92 void OnMsgCreate(PP_Instance instance, |
| 90 HostResource share_context, | 93 HostResource share_context, |
| 91 const std::vector<int32_t>& attribs, | 94 const gpu::gles2::ContextCreationAttribHelper& attrib_helper, |
| 92 HostResource* result, | 95 HostResource* result, |
| 93 gpu::Capabilities* capabilities, | 96 gpu::Capabilities* capabilities, |
| 94 SerializedHandle* handle, | 97 SerializedHandle* handle, |
| 95 gpu::CommandBufferId* command_buffer_id); | 98 gpu::CommandBufferId* command_buffer_id); |
| 96 void OnMsgSetGetBuffer(const HostResource& context, int32_t id); | 99 void OnMsgSetGetBuffer(const HostResource& context, int32_t id); |
| 97 void OnMsgWaitForTokenInRange(const HostResource& context, | 100 void OnMsgWaitForTokenInRange(const HostResource& context, |
| 98 int32_t start, | 101 int32_t start, |
| 99 int32_t end, | 102 int32_t end, |
| 100 gpu::CommandBuffer::State* state, | 103 gpu::CommandBuffer::State* state, |
| 101 bool* success); | 104 bool* success); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 127 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; | 130 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
| 128 | 131 |
| 129 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 132 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 } // namespace proxy | 135 } // namespace proxy |
| 133 } // namespace ppapi | 136 } // namespace ppapi |
| 134 | 137 |
| 135 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 138 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
| 136 | 139 |
| OLD | NEW |