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

Side by Side Diff: ppapi/thunk/resource_creation_api.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: rebase 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
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_THUNK_RESOURCE_CREATION_API_H_ 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 18 matching lines...) Expand all
29 #include "ppapi/shared_impl/ppb_image_data_shared.h" 29 #include "ppapi/shared_impl/ppb_image_data_shared.h"
30 30
31 struct PP_Flash_Menu; 31 struct PP_Flash_Menu;
32 struct PP_BrowserFont_Trusted_Description; 32 struct PP_BrowserFont_Trusted_Description;
33 struct PP_NetAddress_IPv4; 33 struct PP_NetAddress_IPv4;
34 struct PP_NetAddress_IPv6; 34 struct PP_NetAddress_IPv6;
35 struct PP_NetAddress_Private; 35 struct PP_NetAddress_Private;
36 struct PP_Size; 36 struct PP_Size;
37 37
38 namespace gpu { 38 namespace gpu {
39 namespace gles2 {
40 struct ContextCreationAttribHelper;
41 }
39 struct Capabilities; 42 struct Capabilities;
40 } 43 }
41 44
42 namespace ppapi { 45 namespace ppapi {
43 46
44 struct FileRefCreateInfo; 47 struct FileRefCreateInfo;
45 struct URLRequestInfoData; 48 struct URLRequestInfoData;
46 struct URLResponseInfoData; 49 struct URLResponseInfoData;
47 50
48 namespace thunk { 51 namespace thunk {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const PP_Var& accept_types) = 0; 138 const PP_Var& accept_types) = 0;
136 virtual PP_Resource CreateGraphics2D(PP_Instance instance, 139 virtual PP_Resource CreateGraphics2D(PP_Instance instance,
137 const PP_Size* size, 140 const PP_Size* size,
138 PP_Bool is_always_opaque) = 0; 141 PP_Bool is_always_opaque) = 0;
139 virtual PP_Resource CreateGraphics3D(PP_Instance instance, 142 virtual PP_Resource CreateGraphics3D(PP_Instance instance,
140 PP_Resource share_context, 143 PP_Resource share_context,
141 const int32_t* attrib_list) = 0; 144 const int32_t* attrib_list) = 0;
142 virtual PP_Resource CreateGraphics3DRaw( 145 virtual PP_Resource CreateGraphics3DRaw(
143 PP_Instance instance, 146 PP_Instance instance,
144 PP_Resource share_context, 147 PP_Resource share_context,
145 const int32_t* attrib_list, 148 const gpu::gles2::ContextCreationAttribHelper& attrib_helper,
146 gpu::Capabilities* capabilities, 149 gpu::Capabilities* capabilities,
147 base::SharedMemoryHandle* shared_state, 150 base::SharedMemoryHandle* shared_state,
148 gpu::CommandBufferId* command_buffer_id) = 0; 151 gpu::CommandBufferId* command_buffer_id) = 0;
149 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; 152 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0;
150 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; 153 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0;
151 virtual PP_Resource CreateImageData(PP_Instance instance, 154 virtual PP_Resource CreateImageData(PP_Instance instance,
152 PP_ImageDataFormat format, 155 PP_ImageDataFormat format,
153 const PP_Size* size, 156 const PP_Size* size,
154 PP_Bool init_to_zero) = 0; 157 PP_Bool init_to_zero) = 0;
155 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, 158 virtual PP_Resource CreateImageDataSimple(PP_Instance instance,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 PP_VideoDecoder_Profile profile) = 0; 209 PP_VideoDecoder_Profile profile) = 0;
207 #endif // !defined(OS_NACL) 210 #endif // !defined(OS_NACL)
208 211
209 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 212 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
210 }; 213 };
211 214
212 } // namespace thunk 215 } // namespace thunk
213 } // namespace ppapi 216 } // namespace ppapi
214 217
215 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 218 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.cc ('k') | ui/gfx/gfx.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698