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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
| 9 #include "base/single_thread_task_runner.h" |
9 #include "base/test/test_mock_time_task_runner.h" | 10 #include "base/test/test_mock_time_task_runner.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "cc/output/begin_frame_args.h" | 12 #include "cc/output/begin_frame_args.h" |
12 #include "cc/surfaces/local_surface_id_allocator.h" | 13 #include "cc/surfaces/local_surface_id_allocator.h" |
13 #include "cc/surfaces/surface_manager.h" | 14 #include "cc/surfaces/surface_manager.h" |
14 #include "cc/test/begin_frame_args_test.h" | 15 #include "cc/test/begin_frame_args_test.h" |
15 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 #include "ui/compositor/compositor.h" | 18 #include "ui/compositor/compositor.h" |
18 #include "ui/compositor/layer.h" | 19 #include "ui/compositor/layer.h" |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 EXPECT_EQ(gfx::kNullAcceleratedWidget, | 468 EXPECT_EQ(gfx::kNullAcceleratedWidget, |
468 compositor()->ReleaseAcceleratedWidget()); | 469 compositor()->ReleaseAcceleratedWidget()); |
469 compositor()->SetAcceleratedWidget(gfx::kNullAcceleratedWidget); | 470 compositor()->SetAcceleratedWidget(gfx::kNullAcceleratedWidget); |
470 compositor()->SetVisible(true); | 471 compositor()->SetVisible(true); |
471 compositor()->ScheduleDraw(); | 472 compositor()->ScheduleDraw(); |
472 DrawWaiterForTest::WaitForCompositingEnded(compositor()); | 473 DrawWaiterForTest::WaitForCompositingEnded(compositor()); |
473 compositor()->SetRootLayer(nullptr); | 474 compositor()->SetRootLayer(nullptr); |
474 } | 475 } |
475 | 476 |
476 } // namespace ui | 477 } // namespace ui |
OLD | NEW |