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

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

Issue 1345813002: Added a unique command buffer ID for command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tests Created 5 years, 3 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_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 "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "ppapi/c/dev/pp_video_dev.h" 9 #include "ppapi/c/dev/pp_video_dev.h"
10 #include "ppapi/c/dev/ppb_file_chooser_dev.h" 10 #include "ppapi/c/dev/ppb_file_chooser_dev.h"
(...skipping 20 matching lines...) Expand all
31 struct PP_NetAddress_IPv6; 31 struct PP_NetAddress_IPv6;
32 struct PP_NetAddress_Private; 32 struct PP_NetAddress_Private;
33 struct PP_Size; 33 struct PP_Size;
34 34
35 namespace gpu { 35 namespace gpu {
36 struct Capabilities; 36 struct Capabilities;
37 } 37 }
38 38
39 namespace ppapi { 39 namespace ppapi {
40 40
41 struct CommandBufferIDPair;
41 struct FileRefCreateInfo; 42 struct FileRefCreateInfo;
42 struct URLRequestInfoData; 43 struct URLRequestInfoData;
43 struct URLResponseInfoData; 44 struct URLResponseInfoData;
44 45
45 namespace thunk { 46 namespace thunk {
46 47
47 // A functional API for creating resource types. Separating out the creation 48 // A functional API for creating resource types. Separating out the creation
48 // functions here allows us to implement most resources as a pure "resource 49 // functions here allows us to implement most resources as a pure "resource
49 // API", meaning all calls are routed on a per-resource-object basis. The 50 // API", meaning all calls are routed on a per-resource-object basis. The
50 // creation functions are not per-object (since there's no object during 51 // creation functions are not per-object (since there's no object during
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const PP_Size* size, 134 const PP_Size* size,
134 PP_Bool is_always_opaque) = 0; 135 PP_Bool is_always_opaque) = 0;
135 virtual PP_Resource CreateGraphics3D(PP_Instance instance, 136 virtual PP_Resource CreateGraphics3D(PP_Instance instance,
136 PP_Resource share_context, 137 PP_Resource share_context,
137 const int32_t* attrib_list) = 0; 138 const int32_t* attrib_list) = 0;
138 virtual PP_Resource CreateGraphics3DRaw( 139 virtual PP_Resource CreateGraphics3DRaw(
139 PP_Instance instance, 140 PP_Instance instance,
140 PP_Resource share_context, 141 PP_Resource share_context,
141 const int32_t* attrib_list, 142 const int32_t* attrib_list,
142 gpu::Capabilities* capabilities, 143 gpu::Capabilities* capabilities,
143 base::SharedMemoryHandle* shared_state) = 0; 144 base::SharedMemoryHandle* shared_state,
145 CommandBufferIDPair* id_pair) = 0;
144 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0; 146 virtual PP_Resource CreateHostResolver(PP_Instance instance) = 0;
145 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; 147 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0;
146 virtual PP_Resource CreateImageData(PP_Instance instance, 148 virtual PP_Resource CreateImageData(PP_Instance instance,
147 PP_ImageDataFormat format, 149 PP_ImageDataFormat format,
148 const PP_Size* size, 150 const PP_Size* size,
149 PP_Bool init_to_zero) = 0; 151 PP_Bool init_to_zero) = 0;
150 virtual PP_Resource CreateImageDataSimple(PP_Instance instance, 152 virtual PP_Resource CreateImageDataSimple(PP_Instance instance,
151 PP_ImageDataFormat format, 153 PP_ImageDataFormat format,
152 const PP_Size* size, 154 const PP_Size* size,
153 PP_Bool init_to_zero) = 0; 155 PP_Bool init_to_zero) = 0;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 PP_VideoDecoder_Profile profile) = 0; 202 PP_VideoDecoder_Profile profile) = 0;
201 #endif // !defined(OS_NACL) 203 #endif // !defined(OS_NACL)
202 204
203 static const ApiID kApiID = API_ID_RESOURCE_CREATION; 205 static const ApiID kApiID = API_ID_RESOURCE_CREATION;
204 }; 206 };
205 207
206 } // namespace thunk 208 } // namespace thunk
207 } // namespace ppapi 209 } // namespace ppapi
208 210
209 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ 211 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698