| 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 "cc/output/renderer_settings.h" | 10 #include "cc/output/renderer_settings.h" |
| 10 #include "cc/output/texture_mailbox_deleter.h" | 11 #include "cc/output/texture_mailbox_deleter.h" |
| 11 #include "cc/scheduler/begin_frame_source.h" | 12 #include "cc/scheduler/begin_frame_source.h" |
| 12 #include "cc/scheduler/delay_based_time_source.h" | 13 #include "cc/scheduler/delay_based_time_source.h" |
| 13 #include "cc/surfaces/display.h" | 14 #include "cc/surfaces/display.h" |
| 14 #include "cc/surfaces/display_scheduler.h" | 15 #include "cc/surfaces/display_scheduler.h" |
| 15 #include "cc/surfaces/frame_sink_id.h" | 16 #include "cc/surfaces/frame_sink_id.h" |
| 16 #include "cc/surfaces/surface_id_allocator.h" | 17 #include "cc/surfaces/surface_id_allocator.h" |
| 17 #include "cc/surfaces/surface_manager.h" | 18 #include "cc/surfaces/surface_manager.h" |
| 18 #include "cc/test/fake_compositor_frame_sink_client.h" | 19 #include "cc/test/fake_compositor_frame_sink_client.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); | 146 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); |
| 146 | 147 |
| 147 SwapBuffersWithDamage(gfx::Rect()); | 148 SwapBuffersWithDamage(gfx::Rect()); |
| 148 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); | 149 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); |
| 149 task_runner_->RunUntilIdle(); | 150 task_runner_->RunUntilIdle(); |
| 150 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); | 151 EXPECT_EQ(1u, display_output_surface_->num_sent_frames()); |
| 151 } | 152 } |
| 152 | 153 |
| 153 } // namespace | 154 } // namespace |
| 154 } // namespace cc | 155 } // namespace cc |
| OLD | NEW |