From a3ded6d49e31e7b03926e30ee04bdb74a622ca9a Mon Sep 17 00:00:00 2001 From: "gman@chromium.org" Date: Tue, 19 Oct 2010 06:44:39 +0000 Subject: Add Ability to pass in allowed extensions to GPU contexts. Questions: 1) Is WebGraphicsContext3D only used for WebGL? Currently this patch makes that assumption. 2) I started by adding const char* allowed_extensions to a bunch of functions. Then, at the IPC level added GPUInitParams. Should I use GPUInitParams everywhere? 3) Is the path for gpu_init_params.h ok? TEST=unit tests, manually tested WebGL BUG=none Review URL: http://codereview.chromium.org/3775014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63026 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/client/gles2_demo.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gpu/command_buffer/client') diff --git a/gpu/command_buffer/client/gles2_demo.cc b/gpu/command_buffer/client/gles2_demo.cc index 9224866..05c0003 100644 --- a/gpu/command_buffer/client/gles2_demo.cc +++ b/gpu/command_buffer/client/gles2_demo.cc @@ -56,9 +56,10 @@ bool GLES2Demo::Setup(void* hwnd, int32 size) { if (!command_buffer->Initialize(size)) return NULL; - GPUProcessor* gpu_processor = new GPUProcessor(command_buffer.get()); + GPUProcessor* gpu_processor = new GPUProcessor(command_buffer.get(), NULL); if (!gpu_processor->Initialize(reinterpret_cast(hwnd), gfx::Size(), + NULL, std::vector(), NULL, 0)) { -- cgit v1.1