Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2778)

Unified Diff: cc/test/layer_tree_pixel_test.cc

Issue 673873005: CC pixel tests for blending with GL_EXT_blend_minmax (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/trees/layer_tree_host_pixeltest_blending.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.cc
diff --git a/cc/test/layer_tree_pixel_test.cc b/cc/test/layer_tree_pixel_test.cc
index 31d30a4b676ffa627c501a922a00f0d735234818..ef8cc62e296b6d599d06cddf827271dfed02ea42 100644
--- a/cc/test/layer_tree_pixel_test.cc
+++ b/cc/test/layer_tree_pixel_test.cc
@@ -52,7 +52,7 @@ scoped_ptr<OutputSurface> LayerTreePixelTest::CreateOutputSurface(
}
case PIXEL_TEST_GL: {
output_surface = make_scoped_ptr(
- new PixelTestOutputSurface(new TestInProcessContextProvider));
+ new PixelTestOutputSurface(CreteTestContextProvider()));
break;
}
}
@@ -83,6 +83,10 @@ void LayerTreePixelTest::CommitCompleteOnThread(LayerTreeHostImpl* impl) {
EXPECT_EQ(viewport.ToString(), impl->DeviceViewport().ToString());
}
+scoped_refptr<ContextProvider> LayerTreePixelTest::CreteTestContextProvider() {
+ return new TestInProcessContextProvider();
+}
+
scoped_ptr<CopyOutputRequest> LayerTreePixelTest::CreateCopyOutputRequest() {
return CopyOutputRequest::CreateBitmapRequest(
base::Bind(&LayerTreePixelTest::ReadbackResult, base::Unretained(this)));
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/trees/layer_tree_host_pixeltest_blending.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698