OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "blimp/client/core/compositor/blimp_compositor_frame_sink.h" | 5 #include "blimp/client/core/compositor/blimp_compositor_frame_sink.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| 11 #include "base/threading/thread.h" |
11 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
12 #include "cc/output/compositor_frame.h" | 13 #include "cc/output/compositor_frame.h" |
13 #include "cc/test/fake_compositor_frame_sink_client.h" | 14 #include "cc/test/fake_compositor_frame_sink_client.h" |
14 #include "cc/test/test_context_provider.h" | 15 #include "cc/test/test_context_provider.h" |
15 #include "cc/test/test_context_support.h" | 16 #include "cc/test/test_context_support.h" |
16 #include "cc/test/test_gles2_interface.h" | 17 #include "cc/test/test_gles2_interface.h" |
17 #include "cc/test/test_web_graphics_context_3d.h" | 18 #include "cc/test/test_web_graphics_context_3d.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
19 | 20 |
20 namespace blimp { | 21 namespace blimp { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // the main thread complete. | 210 // the main thread complete. |
210 base::RunLoop().RunUntilIdle(); | 211 base::RunLoop().RunUntilIdle(); |
211 EXPECT_EQ(3, main_thread_proxy_->swap_count()); | 212 EXPECT_EQ(3, main_thread_proxy_->swap_count()); |
212 | 213 |
213 EndTest(); | 214 EndTest(); |
214 } | 215 } |
215 | 216 |
216 } // namespace | 217 } // namespace |
217 } // namespace client | 218 } // namespace client |
218 } // namespace blimp | 219 } // namespace blimp |
OLD | NEW |