summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp
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/cpp
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/cpp')
-rw-r--r--ppapi/cpp/dev/graphics_3d_dev.cc23
-rw-r--r--ppapi/cpp/dev/graphics_3d_dev.h8
2 files changed, 0 insertions, 31 deletions
diff --git a/ppapi/cpp/dev/graphics_3d_dev.cc b/ppapi/cpp/dev/graphics_3d_dev.cc
index 3e6736f..3e27d1b 100644
--- a/ppapi/cpp/dev/graphics_3d_dev.cc
+++ b/ppapi/cpp/dev/graphics_3d_dev.cc
@@ -24,13 +24,11 @@ Graphics3D_Dev::Graphics3D_Dev() {
}
Graphics3D_Dev::Graphics3D_Dev(const Instance& instance,
- PP_Config3D_Dev config,
const Graphics3D_Dev& share_context,
const int32_t* attrib_list) {
if (has_interface<PPB_Graphics3D_Dev>()) {
PassRefFromConstructor(get_interface<PPB_Graphics3D_Dev>()->Create(
instance.pp_instance(),
- config,
share_context.pp_resource(),
attrib_list));
}
@@ -40,27 +38,6 @@ Graphics3D_Dev::~Graphics3D_Dev() {
}
// static
-int32_t Graphics3D_Dev::GetConfigs(int32_t *configs,
- int32_t config_size,
- int32_t *num_config) {
- if (!has_interface<PPB_Graphics3D_Dev>())
- return PP_ERROR_NOINTERFACE;
-
- return get_interface<PPB_Graphics3D_Dev>()->GetConfigs(
- configs, config_size, num_config);
-}
-
-// static
-int32_t Graphics3D_Dev::GetConfigAttribs(PP_Config3D_Dev config,
- int32_t* attrib_list) {
- if (!has_interface<PPB_Graphics3D_Dev>())
- return PP_ERROR_NOINTERFACE;
-
- return get_interface<PPB_Graphics3D_Dev>()->GetConfigAttribs(
- config, attrib_list);
-}
-
-// static
Var Graphics3D_Dev::GetString(int32_t name) {
if (!has_interface<PPB_Graphics3D_Dev>())
return Var();
diff --git a/ppapi/cpp/dev/graphics_3d_dev.h b/ppapi/cpp/dev/graphics_3d_dev.h
index 6961c78..0cac284 100644
--- a/ppapi/cpp/dev/graphics_3d_dev.h
+++ b/ppapi/cpp/dev/graphics_3d_dev.h
@@ -20,19 +20,11 @@ class Graphics3D_Dev : public Resource {
Graphics3D_Dev();
Graphics3D_Dev(const Instance& instance,
- PP_Config3D_Dev config,
const Graphics3D_Dev& share_context,
const int32_t* attrib_list);
~Graphics3D_Dev();
- static int32_t GetConfigs(PP_Config3D_Dev* configs,
- int32_t config_size,
- int32_t* num_config);
-
- static int32_t GetConfigAttribs(PP_Config3D_Dev config,
- int32_t* attrib_list);
-
static Var GetString(int32_t name);
int32_t GetAttribs(int32_t* attrib_list) const;