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/gfx/compositor/test/test_compositor_host.h" | 5 #include "ui/compositor/test/test_compositor_host.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "ui/base/x/x11_util.h" | 13 #include "ui/base/x/x11_util.h" |
14 #include "ui/gfx/compositor/compositor.h" | 14 #include "ui/compositor/compositor.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 | 16 |
17 #include <X11/Xlib.h> | 17 #include <X11/Xlib.h> |
18 | 18 |
19 namespace ui { | 19 namespace ui { |
20 | 20 |
21 class TestCompositorHostLinux : public TestCompositorHost, | 21 class TestCompositorHostLinux : public TestCompositorHost, |
22 public CompositorDelegate { | 22 public CompositorDelegate { |
23 public: | 23 public: |
24 TestCompositorHostLinux(const gfx::Rect& bounds); | 24 TestCompositorHostLinux(const gfx::Rect& bounds); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 if (compositor_.get()) | 95 if (compositor_.get()) |
96 compositor_->Draw(false); | 96 compositor_->Draw(false); |
97 } | 97 } |
98 | 98 |
99 // static | 99 // static |
100 TestCompositorHost* TestCompositorHost::Create(const gfx::Rect& bounds) { | 100 TestCompositorHost* TestCompositorHost::Create(const gfx::Rect& bounds) { |
101 return new TestCompositorHostLinux(bounds); | 101 return new TestCompositorHostLinux(bounds); |
102 } | 102 } |
103 | 103 |
104 } // namespace ui | 104 } // namespace ui |
OLD | NEW |