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

Unified Diff: cc/surfaces/surface_aggregator_test_helpers.cc

Issue 565313003: Support doing CopyOutputRequests on surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator_test_helpers.cc
diff --git a/cc/surfaces/surface_aggregator_test_helpers.cc b/cc/surfaces/surface_aggregator_test_helpers.cc
index f273fd3b2692d4e61701e6676c80ae9768164f9b..764ae48827db4b85cc985b458112f794e9dbecc5 100644
--- a/cc/surfaces/surface_aggregator_test_helpers.cc
+++ b/cc/surfaces/surface_aggregator_test_helpers.cc
@@ -117,6 +117,15 @@ void TestQuadMatchesExpectations(Quad expected_quad, DrawQuad* quad) {
EXPECT_EQ(expected_quad.color, solid_color_quad->color);
break;
}
+ case DrawQuad::RENDER_PASS: {
+ ASSERT_EQ(DrawQuad::RENDER_PASS, quad->material);
+
+ const RenderPassDrawQuad* render_pass_quad =
+ RenderPassDrawQuad::MaterialCast(quad);
+
+ EXPECT_EQ(expected_quad.render_pass_id, render_pass_quad->render_pass_id);
+ break;
+ }
default:
NOTREACHED();
break;
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_aggregator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698