From dc57aa98952ada0bb911c05a2f7d6efb1fd14007 Mon Sep 17 00:00:00 2001 From: "kbr@google.com" Date: Tue, 15 Jun 2010 21:54:02 +0000 Subject: Committing on behalf of p155off@gmail.com . Remove duplicated code in AcceleratedSurface using PbufferGLContext instead. This also fixes a crash caused by the OpenGL bindings not being initialized. BUG=46286 TEST=flash plugin 10.1 works again in both mac 10.5 and 10.6 Review URL: http://codereview.chromium.org/2782006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49836 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/service/gpu_processor_mac.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gpu') diff --git a/gpu/command_buffer/service/gpu_processor_mac.cc b/gpu/command_buffer/service/gpu_processor_mac.cc index 8191cef..52fda60 100644 --- a/gpu/command_buffer/service/gpu_processor_mac.cc +++ b/gpu/command_buffer/service/gpu_processor_mac.cc @@ -40,8 +40,7 @@ bool GPUProcessor::Initialize(gfx::PluginWindowHandle window, if (window) { surface_.reset(new AcceleratedSurface()); // TODO(apatrick): AcceleratedSurface will not work with an OSMesa context. - if (!surface_->Initialize( - static_cast(context_->GetHandle()), false)) { + if (!surface_->Initialize(context_.get(), false)) { Destroy(); return false; } -- cgit v1.1