From d37231fa18e0978822c6aa2c9d03e7a56e61810b Mon Sep 17 00:00:00 2001 From: "apatrick@chromium.org" <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 9 Apr 2010 21:16:02 +0000 Subject: - Extracted platform specific code from GLES2 command decoder to platform specific GLContext classes. - GLContext encapsulates management of GL contexts on each platform. - ReadPixels uses actual current window size to validate source rectangle. TEST=trybots, running Pepper 3D and WebGL demos on all platforms BUG=none Review URL: http://codereview.chromium.org/1605014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44129 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/client/gles2_demo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gpu/command_buffer/client/gles2_demo.cc') diff --git a/gpu/command_buffer/client/gles2_demo.cc b/gpu/command_buffer/client/gles2_demo.cc index 6035042..3e9ea77 100644 --- a/gpu/command_buffer/client/gles2_demo.cc +++ b/gpu/command_buffer/client/gles2_demo.cc @@ -56,8 +56,8 @@ bool GLES2Demo::Setup(void* hwnd, int32 size) { GPUProcessor* gpu_processor = new GPUProcessor(command_buffer.get()); if (!gpu_processor->Initialize(reinterpret_cast<HWND>(hwnd), - NULL, gfx::Size(), + NULL, 0)) { return NULL; } -- cgit v1.1