summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk
diff options
context:
space:
mode:
authoralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 21:02:52 +0000
committeralokp@chromium.org <alokp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-16 21:02:52 +0000
commit9d8fe828142f8d57b1966f711c194b4c2ef36614 (patch)
tree158f34ee464ae078c39818464e3ec0d5733c852c /ppapi/thunk
parentc78faffd1c85cc34d6dbaa0b26db89c3e87e8675 (diff)
downloadchromium_src-9d8fe828142f8d57b1966f711c194b4c2ef36614.zip
chromium_src-9d8fe828142f8d57b1966f711c194b4c2ef36614.tar.gz
chromium_src-9d8fe828142f8d57b1966f711c194b4c2ef36614.tar.bz2
Removed config management from Graphics3D API. It will be better handled in the EGL helper library.
Also removed redundant enums from the API. Review URL: http://codereview.chromium.org/7576012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97019 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk')
-rw-r--r--ppapi/thunk/ppb_graphics_3d_thunk.cc19
-rw-r--r--ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc3
-rw-r--r--ppapi/thunk/resource_creation_api.h2
3 files changed, 3 insertions, 21 deletions
diff --git a/ppapi/thunk/ppb_graphics_3d_thunk.cc b/ppapi/thunk/ppb_graphics_3d_thunk.cc
index 1ea23cd..9fab8b2 100644
--- a/ppapi/thunk/ppb_graphics_3d_thunk.cc
+++ b/ppapi/thunk/ppb_graphics_3d_thunk.cc
@@ -17,32 +17,19 @@ namespace {
typedef EnterResource<PPB_Graphics3D_API> EnterGraphics3D;
-int32_t GetConfigs(PP_Config3D_Dev* configs,
- int32_t config_size,
- int32_t* num_config) {
- // TODO(alokp): Implement me.
- return PP_ERROR_FAILED;
-}
-
-int32_t GetConfigAttribs(PP_Config3D_Dev config, int32_t* attrib_list) {
- // TODO(alokp): Implement me.
- return PP_ERROR_FAILED;
-}
-
PP_Var GetString(int32_t name) {
// TODO(alokp): Implement me.
return PP_MakeUndefined();
}
PP_Resource Create(PP_Instance instance,
- PP_Config3D_Dev config,
PP_Resource share_context,
const int32_t* attrib_list) {
EnterFunction<ResourceCreationAPI> enter(instance, true);
if (enter.failed())
return 0;
- return enter.functions()->CreateGraphics3D(instance, config, share_context,
- attrib_list);
+ return enter.functions()->CreateGraphics3D(
+ instance, share_context, attrib_list);
}
PP_Bool IsGraphics3D(PP_Resource resource) {
@@ -80,8 +67,6 @@ int32_t SwapBuffers(PP_Resource graphics_3d, PP_CompletionCallback callback) {
}
const PPB_Graphics3D_Dev g_ppb_graphics_3d_thunk = {
- &GetConfigs,
- &GetConfigAttribs,
&GetString,
&Create,
&IsGraphics3D,
diff --git a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
index 1910dcd..d9413f2 100644
--- a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
+++ b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc
@@ -21,14 +21,13 @@ PP_Graphics3DTrustedState GetErrorState() {
}
PP_Resource CreateRaw(PP_Instance instance,
- PP_Config3D_Dev config,
PP_Resource share_context,
const int32_t* attrib_list) {
EnterFunction<ResourceCreationAPI> enter(instance, true);
if (enter.failed())
return 0;
return enter.functions()->CreateGraphics3DRaw(
- instance, config, share_context, attrib_list);
+ instance, share_context, attrib_list);
}
PP_Bool InitCommandBuffer(PP_Resource context, int32_t size) {
diff --git a/ppapi/thunk/resource_creation_api.h b/ppapi/thunk/resource_creation_api.h
index 6852ef6..c10d0af 100644
--- a/ppapi/thunk/resource_creation_api.h
+++ b/ppapi/thunk/resource_creation_api.h
@@ -74,11 +74,9 @@ class ResourceCreationAPI {
const PP_Size& size,
PP_Bool is_always_opaque) = 0;
virtual PP_Resource CreateGraphics3D(PP_Instance instance,
- PP_Config3D_Dev config,
PP_Resource share_context,
const int32_t* attrib_list) = 0;
virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance,
- PP_Config3D_Dev config,
PP_Resource share_context,
const int32_t* attrib_list) = 0;
virtual PP_Resource CreateImageData(PP_Instance instance,