OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/compositor.h" | 5 #include "ui/gfx/compositor/compositor.h" |
6 | 6 |
7 #include "app/gfx/gl/gl_context.h" | |
8 #include "app/gfx/gl/gl_bindings.h" | |
9 #include "app/gfx/gl/gl_implementation.h" | |
10 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
12 #include "base/logging.h" | 9 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
14 #include "ui/gfx/transform.h" | 11 #include "ui/gfx/transform.h" |
| 12 #include "ui/gfx/gl/gl_context.h" |
| 13 #include "ui/gfx/gl/gl_bindings.h" |
| 14 #include "ui/gfx/gl/gl_implementation.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 | 17 |
18 class CompositorGL : public Compositor { | 18 class CompositorGL : public Compositor { |
19 public: | 19 public: |
20 explicit CompositorGL(gfx::AcceleratedWidget widget); | 20 explicit CompositorGL(gfx::AcceleratedWidget widget); |
21 | 21 |
22 private: | 22 private: |
23 // Overridden from Compositor. | 23 // Overridden from Compositor. |
24 void NotifyStart() OVERRIDE; | 24 void NotifyStart() OVERRIDE; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 // static | 74 // static |
75 Compositor* Compositor::Create(gfx::AcceleratedWidget widget) { | 75 Compositor* Compositor::Create(gfx::AcceleratedWidget widget) { |
76 if (gfx::GetGLImplementation() != gfx::kGLImplementationNone) | 76 if (gfx::GetGLImplementation() != gfx::kGLImplementationNone) |
77 return new CompositorGL(widget); | 77 return new CompositorGL(widget); |
78 return NULL; | 78 return NULL; |
79 } | 79 } |
80 | 80 |
81 } // namespace ui | 81 } // namespace ui |
OLD | NEW |