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

Side by Side Diff: ppapi/thunk/resource_creation_api.h

Issue 1548443002: Introducing gpu::CommandBufferId as a distinct, IdType<...>-based type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@type-safe-save-package-id-self-contained
Patch Set: Rebasing... Created 4 years, 10 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/thunk/DEPS ('k') | no next file » | 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"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "gpu/command_buffer/common/command_buffer_id.h"
12 #include "ppapi/c/dev/pp_video_dev.h" 13 #include "ppapi/c/dev/pp_video_dev.h"
13 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 14 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
14 #include "ppapi/c/dev/ppb_truetype_font_dev.h" 15 #include "ppapi/c/dev/ppb_truetype_font_dev.h"
15 #include "ppapi/c/pp_bool.h" 16 #include "ppapi/c/pp_bool.h"
16 #include "ppapi/c/pp_instance.h" 17 #include "ppapi/c/pp_instance.h"
17 #include "ppapi/c/pp_resource.h" 18 #include "ppapi/c/pp_resource.h"
18 #include "ppapi/c/ppb_audio.h" 19 #include "ppapi/c/ppb_audio.h"
19 #include "ppapi/c/ppb_audio_config.h" 20 #include "ppapi/c/ppb_audio_config.h"
20 #include "ppapi/c/ppb_file_system.h" 21 #include "ppapi/c/ppb_file_system.h"
21 #include "ppapi/c/ppb_graphics_3d.h" 22 #include "ppapi/c/ppb_graphics_3d.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 PP_Bool is_always_opaque) = 0; 138 PP_Bool is_always_opaque) = 0;
138 virtual PP_Resource CreateGraphics3D(PP_Instance instance, 139 virtual PP_Resource CreateGraphics3D(PP_Instance instance,
139 PP_Resource share_context, 140 PP_Resource share_context,
140 const int32_t* attrib_list) = 0; 141 const int32_t* attrib_list) = 0;
141 virtual PP_Resource CreateGraphics3DRaw( 142 virtual PP_Resource CreateGraphics3DRaw(
142 PP_Instance instance, 143 PP_Instance instance,
143 PP_Resource share_context, 144 PP_Resource share_context,
144 const int32_t* attrib_list, 145 const int32_t* attrib_list,
145 gpu::Capabilities* capabilities, 146 gpu::Capabilities* capabilities,
146 base::SharedMemoryHandle* shared_state, 147 base::SharedMemoryHandle* shared_state,
147 uint64_t* command_buffer_id) = 0; 148 gpu::CommandBufferId* command_buffer_id) = 0;
148 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; 149 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0;
149 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; 150 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0;
150 virtual PP_Resource CreateImageData(PP_Instance instance, 151 virtual PP_Resource CreateImageData(PP_Instance instance,
151 PP_ImageDataFormat format, 152 PP_ImageDataFormat format,
152 const PP_Size* size, 153 const PP_Size* size,
153 PP_Bool init_to_zero) = 0; 154 PP_Bool init_to_zero) = 0;
154 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, 155 virtual PP_Resource CreateImageDataSimple(PP_Instance instance,
155 PP_ImageDataFormat format, 156 PP_ImageDataFormat format,
156 const PP_Size* size, 157 const PP_Size* size,
157 PP_Bool init_to_zero) = 0; 158 PP_Bool init_to_zero) = 0;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 PP_VideoDecoder_Profile profile) = 0; 205 PP_VideoDecoder_Profile profile) = 0;
205 #endif // !defined(OS_NACL) 206 #endif // !defined(OS_NACL)
206 207
207 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 208 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
208 }; 209 };
209 210
210 } // namespace thunk 211 } // namespace thunk
211 } // namespace ppapi 212 } // namespace ppapi
212 213
213 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 214 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698