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

Side by Side Diff: services/ui/ws/window_tree_client_unittest.cc

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 2147 matching lines...) Expand 10 before | Expand all | Expand 10 after
2158 cc::mojom::MojoCompositorFrameSinkClientRequest client_request; 2158 cc::mojom::MojoCompositorFrameSinkClientRequest client_request;
2159 cc::mojom::MojoCompositorFrameSinkClientPtr surface_client_ptr; 2159 cc::mojom::MojoCompositorFrameSinkClientPtr surface_client_ptr;
2160 client_request = mojo::GetProxy(&surface_client_ptr); 2160 client_request = mojo::GetProxy(&surface_client_ptr);
2161 wt2()->AttachCompositorFrameSink( 2161 wt2()->AttachCompositorFrameSink(
2162 window_2_101, mojom::CompositorFrameSinkType::DEFAULT, 2162 window_2_101, mojom::CompositorFrameSinkType::DEFAULT,
2163 mojo::GetProxy(&surface_ptr), std::move(surface_client_ptr)); 2163 mojo::GetProxy(&surface_ptr), std::move(surface_client_ptr));
2164 cc::CompositorFrame compositor_frame; 2164 cc::CompositorFrame compositor_frame;
2165 std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create(); 2165 std::unique_ptr<cc::RenderPass> render_pass = cc::RenderPass::Create();
2166 gfx::Rect frame_rect(0, 0, 100, 100); 2166 gfx::Rect frame_rect(0, 0, 100, 100);
2167 render_pass->SetNew(cc::RenderPassId(1, 1), frame_rect, frame_rect, 2167 render_pass->SetNew(cc::RenderPassId(1, 1), frame_rect, frame_rect,
2168 gfx::Transform()); 2168 gfx::Transform(), cc::FilterOperations(),
2169 cc::FilterOperations());
2169 compositor_frame.render_pass_list.push_back(std::move(render_pass)); 2170 compositor_frame.render_pass_list.push_back(std::move(render_pass));
2170 cc::LocalFrameId local_frame_id(1, base::UnguessableToken::Create()); 2171 cc::LocalFrameId local_frame_id(1, base::UnguessableToken::Create());
2171 surface_ptr->SubmitCompositorFrame(local_frame_id, 2172 surface_ptr->SubmitCompositorFrame(local_frame_id,
2172 std::move(compositor_frame)); 2173 std::move(compositor_frame));
2173 // Make sure the parent connection gets the surface ID. 2174 // Make sure the parent connection gets the surface ID.
2174 wt_client1()->WaitForChangeCount(1); 2175 wt_client1()->WaitForChangeCount(1);
2175 // Verify that the submitted frame is for |window_2_101|. 2176 // Verify that the submitted frame is for |window_2_101|.
2176 EXPECT_EQ(window_2_101_in_ws1, 2177 EXPECT_EQ(window_2_101_in_ws1,
2177 changes1()->back().surface_id.frame_sink_id().client_id()); 2178 changes1()->back().surface_id.frame_sink_id().client_id());
2178 } 2179 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 2217
2217 // TODO(sky): make sure coverage of what was 2218 // TODO(sky): make sure coverage of what was
2218 // WindowManagerTest.SecondEmbedRoot_InitService and 2219 // WindowManagerTest.SecondEmbedRoot_InitService and
2219 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window 2220 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window
2220 // manager 2221 // manager
2221 // tests. 2222 // tests.
2222 2223
2223 } // namespace test 2224 } // namespace test
2224 } // namespace ws 2225 } // namespace ws
2225 } // namespace ui 2226 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698