OLD | NEW |
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 Loading... |
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 |
OLD | NEW |