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

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

Issue 2104403003: pepper: parse context creation attrib list on the plugin side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gpu_pref_size_in_attrs
Patch Set: moar gyp fickses Created 4 years, 5 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
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>
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 const int32_t* attrib_list); 82 const int32_t* attrib_list);
80 83
81 // InterfaceProxy implementation. 84 // InterfaceProxy implementation.
82 bool OnMessageReceived(const IPC::Message& msg) override; 85 bool OnMessageReceived(const IPC::Message& msg) override;
83 86
84 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D; 87 static const ApiID kApiID = API_ID_PPB_GRAPHICS_3D;
85 88
86 private: 89 private:
87 void OnMsgCreate(PP_Instance instance, 90 void OnMsgCreate(PP_Instance instance,
88 HostResource share_context, 91 HostResource share_context,
89 const std::vector<int32_t>& attribs, 92 const gpu::gles2::ContextCreationAttribHelper& attrib_helper,
90 HostResource* result, 93 HostResource* result,
91 gpu::Capabilities* capabilities, 94 gpu::Capabilities* capabilities,
92 SerializedHandle* handle, 95 SerializedHandle* handle,
93 gpu::CommandBufferId* command_buffer_id); 96 gpu::CommandBufferId* command_buffer_id);
94 void OnMsgSetGetBuffer(const HostResource& context, int32_t id); 97 void OnMsgSetGetBuffer(const HostResource& context, int32_t id);
95 void OnMsgWaitForTokenInRange(const HostResource& context, 98 void OnMsgWaitForTokenInRange(const HostResource& context,
96 int32_t start, 99 int32_t start,
97 int32_t end, 100 int32_t end,
98 gpu::CommandBuffer::State* state, 101 gpu::CommandBuffer::State* state,
99 bool* success); 102 bool* success);
(...skipping 23 matching lines...) Expand all
123 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_; 126 ProxyCompletionCallbackFactory<PPB_Graphics3D_Proxy> callback_factory_;
124 127
125 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy); 128 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Proxy);
126 }; 129 };
127 130
128 } // namespace proxy 131 } // namespace proxy
129 } // namespace ppapi 132 } // namespace ppapi
130 133
131 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_ 134 #endif // PPAPI_PROXY_PPB_GRAPHICS_3D_PROXY_H_
132 135
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698