| 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/test/test_mock_time_task_runner.h" | 9 #include "base/test/test_mock_time_task_runner.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "cc/output/begin_frame_args.h" | 11 #include "cc/output/begin_frame_args.h" |
| 12 #include "cc/surfaces/local_surface_id_allocator.h" | 12 #include "cc/surfaces/local_surface_id_allocator.h" |
| 13 #include "cc/surfaces/surface_factory.h" | |
| 14 #include "cc/surfaces/surface_factory_client.h" | |
| 15 #include "cc/surfaces/surface_manager.h" | 13 #include "cc/surfaces/surface_manager.h" |
| 16 #include "cc/test/begin_frame_args_test.h" | 14 #include "cc/test/begin_frame_args_test.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 15 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "ui/compositor/compositor.h" | 17 #include "ui/compositor/compositor.h" |
| 20 #include "ui/compositor/layer.h" | 18 #include "ui/compositor/layer.h" |
| 21 #include "ui/compositor/test/context_factories_for_test.h" | 19 #include "ui/compositor/test/context_factories_for_test.h" |
| 22 #include "ui/compositor/test/draw_waiter_for_test.h" | 20 #include "ui/compositor/test/draw_waiter_for_test.h" |
| 23 | 21 |
| 24 using testing::Mock; | 22 using testing::Mock; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 EXPECT_EQ(gfx::kNullAcceleratedWidget, | 335 EXPECT_EQ(gfx::kNullAcceleratedWidget, |
| 338 compositor()->ReleaseAcceleratedWidget()); | 336 compositor()->ReleaseAcceleratedWidget()); |
| 339 compositor()->SetAcceleratedWidget(gfx::kNullAcceleratedWidget); | 337 compositor()->SetAcceleratedWidget(gfx::kNullAcceleratedWidget); |
| 340 compositor()->SetVisible(true); | 338 compositor()->SetVisible(true); |
| 341 compositor()->ScheduleDraw(); | 339 compositor()->ScheduleDraw(); |
| 342 DrawWaiterForTest::WaitForCompositingStarted(compositor()); | 340 DrawWaiterForTest::WaitForCompositingStarted(compositor()); |
| 343 compositor()->SetRootLayer(nullptr); | 341 compositor()->SetRootLayer(nullptr); |
| 344 } | 342 } |
| 345 | 343 |
| 346 } // namespace ui | 344 } // namespace ui |
| OLD | NEW |