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

Unified Diff: cc/surfaces/surfaces_pixeltest.cc

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. Created 3 years, 11 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
Index: cc/surfaces/surfaces_pixeltest.cc
diff --git a/cc/surfaces/surfaces_pixeltest.cc b/cc/surfaces/surfaces_pixeltest.cc
index 264e22e0249eb104491f8c2e5d4d266ca5f859da..0e6039ce1b6ec06c5c4c2985c67258e527b89370 100644
--- a/cc/surfaces/surfaces_pixeltest.cc
+++ b/cc/surfaces/surfaces_pixeltest.cc
@@ -122,9 +122,9 @@ TEST_F(SurfacesPixelTest, DrawSimpleAggregatedFrame) {
SurfaceDrawQuad* surface_quad =
pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
surface_quad->SetNew(pass->shared_quad_state_list.back(),
- gfx::Rect(child_size),
- gfx::Rect(child_size),
- child_surface_id);
+ gfx::Rect(child_size), gfx::Rect(child_size),
+ child_surface_id, SurfaceDrawQuadType::PRIMARY,
+ nullptr);
SolidColorDrawQuad* color_quad =
pass->CreateAndAppendDrawQuad<SolidColorDrawQuad>();
@@ -214,9 +214,9 @@ TEST_F(SurfacesPixelTest, DrawAggregatedFrameWithSurfaceTransforms) {
SurfaceDrawQuad* left_surface_quad =
pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
left_surface_quad->SetNew(pass->shared_quad_state_list.back(),
- gfx::Rect(child_size),
- gfx::Rect(child_size),
- left_child_id);
+ gfx::Rect(child_size), gfx::Rect(child_size),
+ left_child_id, SurfaceDrawQuadType::PRIMARY,
+ nullptr);
surface_transform.Translate(100, 0);
CreateAndAppendTestSharedQuadState(
@@ -225,9 +225,9 @@ TEST_F(SurfacesPixelTest, DrawAggregatedFrameWithSurfaceTransforms) {
SurfaceDrawQuad* right_surface_quad =
pass->CreateAndAppendDrawQuad<SurfaceDrawQuad>();
right_surface_quad->SetNew(pass->shared_quad_state_list.back(),
- gfx::Rect(child_size),
- gfx::Rect(child_size),
- right_child_id);
+ gfx::Rect(child_size), gfx::Rect(child_size),
+ right_child_id, SurfaceDrawQuadType::PRIMARY,
+ nullptr);
CompositorFrame root_frame;
root_frame.render_pass_list.push_back(std::move(pass));

Powered by Google App Engine
This is Rietveld 408576698