Index: content/browser/renderer_host/render_widget_host_view_browsertest.cc |
diff --git a/content/browser/renderer_host/render_widget_host_view_browsertest.cc b/content/browser/renderer_host/render_widget_host_view_browsertest.cc |
index 78091320adb0260610cf531080816249152df7f6..c18b21b91468cb62098b60a7217df55440fa6e42 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_browsertest.cc |
+++ b/content/browser/renderer_host/render_widget_host_view_browsertest.cc |
@@ -27,7 +27,6 @@ |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkDevice.h" |
#include "ui/base/ui_base_switches.h" |
-#include "ui/compositor/compositor_setup.h" |
#include "ui/gfx/size_conversions.h" |
#include "ui/gl/gl_switches.h" |
@@ -211,6 +210,13 @@ class RenderWidgetHostViewBrowserTest : public ContentBrowserTest { |
class CompositingRenderWidgetHostViewBrowserTest |
: public RenderWidgetHostViewBrowserTest { |
public: |
+ virtual void SetUp() OVERRIDE { |
+ // We expect real pixel output for these tests. |
+ UseRealGLContexts(); |
+ |
+ RenderWidgetHostViewBrowserTest::SetUp(); |
+ } |
+ |
virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
// Note: Not appending kForceCompositingMode switch here, since not all bots |
// support compositing. Some bots will run with compositing on, and others |
@@ -405,15 +411,6 @@ IN_PROC_BROWSER_TEST_F(CompositingRenderWidgetHostViewBrowserTest, |
"supported on this platform."); |
return; |
} |
-#if defined(USE_AURA) |
- if (ui::IsTestCompositorEnabled()) { |
- LOG(WARNING) << ("Blindly passing this test: Aura test compositor doesn't " |
- "support frame subscription."); |
- // TODO(miu): Aura test compositor should support frame subscription for |
- // testing. http://crbug.com/240572 |
- return; |
- } |
-#endif |
base::RunLoop run_loop; |
scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber( |
@@ -478,20 +475,15 @@ class CompositingRenderWidgetHostViewBrowserTestTabCapture |
test_url_("data:text/html,<!doctype html>") {} |
virtual void SetUp() OVERRIDE { |
- ui::DisableTestCompositor(); |
- CompositingRenderWidgetHostViewBrowserTest::SetUp(); |
- } |
+ // We expect real pixel output for these tests. |
+ UseRealGLContexts(); |
- virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
- // TODO(Hubbe): This code is very similar to some code in |
- // gpu_feature_browsertest.cc, and should really be shared in a common |
- // location. |
- if (!command_line->HasSwitch(switches::kUseGpuInTests)) { |
- CHECK(!command_line->HasSwitch(switches::kUseGL)) |
- << "kUseGL must not be set by test framework code!"; |
- command_line->AppendSwitchASCII(switches::kUseGL, |
- gfx::kGLImplementationOSMesaName); |
- } |
+ // On legacy windows, these tests need real GL bindings to pass. |
+#if defined(OS_WIN) && !defined(USE_AURA) |
+ UseRealGLBindings(); |
+#endif |
+ |
+ CompositingRenderWidgetHostViewBrowserTest::SetUp(); |
} |
void CopyFromCompositingSurfaceCallback(base::Closure quit_callback, |