diff options
author | penghuang <penghuang@chromium.org> | 2014-11-03 13:05:35 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-03 21:06:25 +0000 |
commit | 5527fa12043d5c268b31e3744e2e03d86b7e8231 (patch) | |
tree | 31b699415964a25def350b170448d95b00634f3b /gpu/command_buffer/tests/gl_manager.cc | |
parent | 00f53a49a90a56c22d412a8e0e27e3a4a6ae5155 (diff) | |
download | chromium_src-5527fa12043d5c268b31e3744e2e03d86b7e8231.zip chromium_src-5527fa12043d5c268b31e3744e2e03d86b7e8231.tar.gz chromium_src-5527fa12043d5c268b31e3744e2e03d86b7e8231.tar.bz2 |
PepperGL: Enable client side arrays support.
Currently, the client side arrays feature is controlled by a compile flag.
And the flag is only defined in nacl build. This change uses a variable to
control it. So we could enable it in runtime.
BUG=429179
Review URL: https://codereview.chromium.org/702493002
Cr-Commit-Position: refs/heads/master@{#302478}
Diffstat (limited to 'gpu/command_buffer/tests/gl_manager.cc')
-rw-r--r-- | gpu/command_buffer/tests/gl_manager.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc index ffbc573..a8a7425 100644 --- a/gpu/command_buffer/tests/gl_manager.cc +++ b/gpu/command_buffer/tests/gl_manager.cc @@ -255,12 +255,14 @@ void GLManager::Initialize(const GLManager::Options& options) { transfer_buffer_.reset(new TransferBuffer(gles2_helper_.get())); // Create the object exposing the OpenGL API. + const bool support_client_side_arrays = true; gles2_implementation_.reset( new gles2::GLES2Implementation(gles2_helper_.get(), client_share_group, transfer_buffer_.get(), options.bind_generates_resource, options.lose_context_when_out_of_memory, + support_client_side_arrays, this)); ASSERT_TRUE(gles2_implementation_->Initialize( |