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/client/gl_in_process_context.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/client/gl_in_process_context.cc')
-rw-r--r-- | gpu/command_buffer/client/gl_in_process_context.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/gl_in_process_context.cc b/gpu/command_buffer/client/gl_in_process_context.cc index 2405c0d..015a2a7 100644 --- a/gpu/command_buffer/client/gl_in_process_context.cc +++ b/gpu/command_buffer/client/gl_in_process_context.cc @@ -204,7 +204,8 @@ bool GLInProcessContextImpl::Initialize( // Check for consistency. DCHECK(!attribs.bind_generates_resource); - bool bind_generates_resource = false; + const bool bind_generates_resource = false; + const bool support_client_side_arrays = false; // Create the object exposing the OpenGL API. gles2_implementation_.reset( @@ -213,6 +214,7 @@ bool GLInProcessContextImpl::Initialize( transfer_buffer_.get(), bind_generates_resource, attribs.lose_context_when_out_of_memory, + support_client_side_arrays, command_buffer_.get())); if (use_global_share_group) { |