summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 00:48:03 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-27 00:48:03 +0000
commitae51d195b0e1bfaba2243f005a1aba675395595f (patch)
treed6990cd30404b49ad0b01db2126f971b601a94d6 /chrome/renderer
parent4b3540935a9769fb1634483027b70ee763ee431e (diff)
downloadchromium_src-ae51d195b0e1bfaba2243f005a1aba675395595f.zip
chromium_src-ae51d195b0e1bfaba2243f005a1aba675395595f.tar.gz
chromium_src-ae51d195b0e1bfaba2243f005a1aba675395595f.tar.bz2
Changes the code to use separate ids namspaces
for buffers, textures, programs, etc.. This is needed to pass GLES2 conformance tests. TEST=old unit tests BUG=none Review URL: http://codereview.chromium.org/1747013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/ggl/ggl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/ggl/ggl.cc b/chrome/renderer/ggl/ggl.cc
index 8973dda..a6f1314 100644
--- a/chrome/renderer/ggl/ggl.cc
+++ b/chrome/renderer/ggl/ggl.cc
@@ -120,7 +120,7 @@ bool Context::Initialize(gfx::NativeViewId view, const gfx::Size& size) {
// Allocate a frame buffer ID with respect to the parent.
if (parent_) {
- parent_->gles2_implementation_->MakeIds(1, &parent_texture_id_);
+ parent_texture_id_ = parent_->gles2_implementation_->MakeTextureId();
}
// Create a proxy to a command buffer in the GPU process.
@@ -186,7 +186,7 @@ void Context::ResizeOffscreen(const gfx::Size& size) {
void Context::Destroy() {
if (parent_ && parent_texture_id_ != 0)
- parent_->gles2_implementation_->FreeIds(1, &parent_texture_id_);
+ parent_->gles2_implementation_->FreeTextureId(parent_texture_id_);
delete gles2_implementation_;
gles2_implementation_ = NULL;