OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/compositor/test/test_compositor_host.h" | 5 #include "ui/compositor/test/test_compositor_host.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "ui/compositor/compositor.h" | 12 #include "ui/compositor/compositor.h" |
13 #include "ui/gfx/win/window_impl.h" | 13 #include "ui/gfx/win/window_impl.h" |
14 | 14 |
15 namespace ui { | 15 namespace ui { |
16 | 16 |
17 class TestCompositorHostWin : public TestCompositorHost, | 17 class TestCompositorHostWin : public TestCompositorHost, |
18 public gfx::WindowImpl { | 18 public gfx::WindowImpl { |
19 public: | 19 public: |
20 TestCompositorHostWin(const gfx::Rect& bounds, | 20 TestCompositorHostWin(const gfx::Rect& bounds, |
21 ui::ContextFactory* context_factory) { | 21 ui::ContextFactory* context_factory) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 DISALLOW_COPY_AND_ASSIGN(TestCompositorHostWin); | 53 DISALLOW_COPY_AND_ASSIGN(TestCompositorHostWin); |
54 }; | 54 }; |
55 | 55 |
56 TestCompositorHost* TestCompositorHost::Create( | 56 TestCompositorHost* TestCompositorHost::Create( |
57 const gfx::Rect& bounds, | 57 const gfx::Rect& bounds, |
58 ui::ContextFactory* context_factory) { | 58 ui::ContextFactory* context_factory) { |
59 return new TestCompositorHostWin(bounds, context_factory); | 59 return new TestCompositorHostWin(bounds, context_factory); |
60 } | 60 } |
61 | 61 |
62 } // namespace ui | 62 } // namespace ui |
OLD | NEW |