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

Side by Side Diff: cc/surfaces/direct_compositor_frame_sink_unittest.cc

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: fix clang compile error 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support_unittest.cc ('k') | cc/surfaces/display.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "cc/surfaces/direct_compositor_frame_sink.h" 5 #include "cc/surfaces/direct_compositor_frame_sink.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/output/renderer_settings.h" 10 #include "cc/output/renderer_settings.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); 141 EXPECT_EQ(1u, display_output_surface_->num_sent_frames());
142 SwapBuffersWithDamage(display_rect_); 142 SwapBuffersWithDamage(display_rect_);
143 task_runner_->RunUntilIdle(); 143 task_runner_->RunUntilIdle();
144 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); 144 EXPECT_EQ(1u, display_output_surface_->num_sent_frames());
145 display_output_surface_->set_suspended_for_recycle(false); 145 display_output_surface_->set_suspended_for_recycle(false);
146 SwapBuffersWithDamage(display_rect_); 146 SwapBuffersWithDamage(display_rect_);
147 task_runner_->RunUntilIdle(); 147 task_runner_->RunUntilIdle();
148 EXPECT_EQ(2u, display_output_surface_->num_sent_frames()); 148 EXPECT_EQ(2u, display_output_surface_->num_sent_frames());
149 } 149 }
150 150
151 // TODO(eseckler): Add back tests for BeginFrameAck forwarding through
152 // DirectCompositorFrameSink and CompositorFrameSinkSupport when we add plumbing
153 // of BeginFrameAcks through SurfaceObservers.
154
155 } // namespace 151 } // namespace
156 } // namespace cc 152 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support_unittest.cc ('k') | cc/surfaces/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698