| 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 } | |
| 28 struct Capabilities; | 25 struct Capabilities; |
| 29 } | 26 } |
| 30 | 27 |
| 31 namespace ppapi { | 28 namespace ppapi { |
| 32 | 29 |
| 33 class HostResource; | 30 class HostResource; |
| 34 | 31 |
| 35 namespace proxy { | 32 namespace proxy { |
| 36 | 33 |
| 37 class SerializedHandle; | 34 class SerializedHandle; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 const int32_t* attrib_list); | 79 const int32_t* attrib_list); |
| 83 | 80 |
| 84 // InterfaceProxy implementation. | 81 // InterfaceProxy implementation. |
| 85 bool OnMessageReceived(const IPC::Message& msg) override; | 82 bool OnMessageReceived(const IPC::Message& msg) override; |
| 86 | 83 |
| 87 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; | 84 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; |
| 88 | 85 |
| 89 private: | 86 private: |
| 90 void OnMsgCreate(PP_Instance instance, | 87 void OnMsgCreate(PP_Instance instance, |
| 91 HostResource share_context, | 88 HostResource share_context, |
| 92 const gpu::gles2::ContextCreationAttribHelper& attrib_helper, | 89 const std::vector<int32_t>& attribs, |
| 93 HostResource* result, | 90 HostResource* result, |
| 94 gpu::Capabilities* capabilities, | 91 gpu::Capabilities* capabilities, |
| 95 SerializedHandle* handle, | 92 SerializedHandle* handle, |
| 96 gpu::CommandBufferId* command_buffer_id); | 93 gpu::CommandBufferId* command_buffer_id); |
| 97 void OnMsgSetGetBuffer(const HostResource& context, int32_t id); | 94 void OnMsgSetGetBuffer(const HostResource& context, int32_t id); |
| 98 void OnMsgWaitForTokenInRange(const HostResource& context, | 95 void OnMsgWaitForTokenInRange(const HostResource& context, |
| 99 int32_t start, | 96 int32_t start, |
| 100 int32_t end, | 97 int32_t end, |
| 101 gpu::CommandBuffer::State* state, | 98 gpu::CommandBuffer::State* state, |
| 102 bool* success); | 99 bool* success); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 126 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; | 123 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; |
| 127 | 124 |
| 128 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); | 125 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 } // namespace proxy | 128 } // namespace proxy |
| 132 } // namespace ppapi | 129 } // namespace ppapi |
| 133 | 130 |
| 134 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ | 131 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ |
| 135 | 132 |
| OLD | NEW |