From 5527fa12043d5c268b31e3744e2e03d86b7e8231 Mon Sep 17 00:00:00 2001 From: penghuang Date: Mon, 3 Nov 2014 13:05:35 -0800 Subject: 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} --- gpu/command_buffer/tests/gl_manager.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gpu/command_buffer/tests') 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( -- cgit v1.1