summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test.cc
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-22 08:08:23 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-22 08:08:23 +0000
commitfe18c779e0fd9ea177bf7d8113cceb709ce170cf (patch)
tree52039585e000efe772956456db428acdc9ffe867 /cc/test/pixel_test.cc
parent8b51739c74a58e3a4111fe5e7d1b7acbff566a69 (diff)
downloadchromium_src-fe18c779e0fd9ea177bf7d8113cceb709ce170cf.zip
chromium_src-fe18c779e0fd9ea177bf7d8113cceb709ce170cf.tar.gz
chromium_src-fe18c779e0fd9ea177bf7d8113cceb709ce170cf.tar.bz2
cc: Make cc_unittests opt into real GL NullDraw contexts.
This breaks the dependency on the TestCompositor for this test suite. Once it's no longer in use by any test suite, we can remove it. Depends on: Depends on: https://codereview.chromium.org/175093004/ R=enne BUG=270918 Review URL: https://codereview.chromium.org/171363008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252770 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/pixel_test.cc')
-rw-r--r--cc/test/pixel_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/cc/test/pixel_test.cc b/cc/test/pixel_test.cc
index 0a31bb0..77a8f52 100644
--- a/cc/test/pixel_test.cc
+++ b/cc/test/pixel_test.cc
@@ -117,6 +117,8 @@ bool PixelTest::PixelsMatchReference(const base::FilePath& ref_file,
}
void PixelTest::SetUpGLRenderer(bool use_skia_gpu_backend) {
+ enable_pixel_output_.reset(new gfx::DisableNullDrawGLBindings);
+
output_surface_.reset(
new PixelTestOutputSurface(new TestInProcessContextProvider));
output_surface_->BindToClient(output_surface_client_.get());