From 351b6592239ee36d7f218396c1bd84514fd35a59 Mon Sep 17 00:00:00 2001
From: "apatrick@chromium.org"
 <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Thu, 22 Apr 2010 21:21:48 +0000
Subject: Pepper3D plugin tests enabled for Windows.

OSMesa (offscreen 3D renderer) allows us to now run these on the bots. Once OSMesa is working on linux and max, we can enable the tests for those platforms too.

TEST=trybots, checked they fail when OSMesa is not built and pass when OSMesa is built
BUG=none

Review URL: http://codereview.chromium.org/1752006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45353 0039d316-1c4b-4281-b951-d872f2087c98
---
 app/gfx/gl/gl_context_win.cc | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'app')

diff --git a/app/gfx/gl/gl_context_win.cc b/app/gfx/gl/gl_context_win.cc
index b3a8243..0f4d570 100644
--- a/app/gfx/gl/gl_context_win.cc
+++ b/app/gfx/gl/gl_context_win.cc
@@ -411,6 +411,10 @@ void OSMesaViewGLContext::Destroy() {
 }
 
 bool OSMesaViewGLContext::MakeCurrent() {
+  // TODO(apatrick): This is a bit of a hack. The window might have had zero
+  // size when the context was initialized. Assume it has a valid size when
+  // MakeCurrent is called and resize the back buffer if necessary.
+  UpdateSize();
   return osmesa_context_.MakeCurrent();
 }
 
-- 
cgit v1.1