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

Unified Diff: cc/surfaces/compositor_frame_sink_support_unittest.cc

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Address comments Created 3 years, 7 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/compositor_frame_sink_support.cc ('k') | cc/surfaces/direct_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/compositor_frame_sink_support_unittest.cc
diff --git a/cc/surfaces/compositor_frame_sink_support_unittest.cc b/cc/surfaces/compositor_frame_sink_support_unittest.cc
index fe1156e9e27ce4f125435585e7805c09edb31d0a..8dda9cd13d5cda487324105be8d5d08a76834443 100644
--- a/cc/surfaces/compositor_frame_sink_support_unittest.cc
+++ b/cc/surfaces/compositor_frame_sink_support_unittest.cc
@@ -672,9 +672,7 @@ TEST_F(CompositorFrameSinkSupportTest, DestroyCycle) {
manager_.RegisterFrameSinkId(kAnotherArbitraryFrameSinkId);
// Give id2 a frame that references local_surface_id_.
{
- std::unique_ptr<RenderPass> render_pass(RenderPass::Create());
CompositorFrame frame = MakeCompositorFrame();
- frame.render_pass_list.push_back(std::move(render_pass));
frame.metadata.referenced_surfaces.push_back(
SurfaceId(support_->frame_sink_id(), local_surface_id_));
support2->SubmitCompositorFrame(local_surface_id2, std::move(frame));
@@ -685,9 +683,7 @@ TEST_F(CompositorFrameSinkSupportTest, DestroyCycle) {
support2->EvictCurrentSurface();
// Give local_surface_id_ a frame that references id2.
{
- std::unique_ptr<RenderPass> render_pass(RenderPass::Create());
CompositorFrame frame = MakeCompositorFrame();
- frame.render_pass_list.push_back(std::move(render_pass));
frame.metadata.referenced_surfaces.push_back(id2);
support_->SubmitCompositorFrame(local_surface_id_, std::move(frame));
}
@@ -716,9 +712,7 @@ void CopyRequestTestCallback(bool* called,
TEST_F(CompositorFrameSinkSupportTest, DuplicateCopyRequest) {
{
- std::unique_ptr<RenderPass> render_pass(RenderPass::Create());
CompositorFrame frame = MakeCompositorFrame();
- frame.render_pass_list.push_back(std::move(render_pass));
frame.metadata.referenced_surfaces.push_back(
SurfaceId(support_->frame_sink_id(), local_surface_id_));
support_->SubmitCompositorFrame(local_surface_id_, std::move(frame));
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/direct_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698