OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MOJO_GPU_GL_CONTEXT_H_ | 5 #ifndef MOJO_GPU_GL_CONTEXT_H_ |
6 #define MOJO_GPU_GL_CONTEXT_H_ | 6 #define MOJO_GPU_GL_CONTEXT_H_ |
7 | 7 |
| 8 #include <MGL/mgl.h> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
10 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
11 #include "mojo/public/c/gpu/MGL/mgl.h" | |
12 #include "mojo/public/cpp/bindings/interface_ptr.h" | 13 #include "mojo/public/cpp/bindings/interface_ptr.h" |
13 | 14 |
14 namespace mojo { | 15 namespace mojo { |
15 class ApplicationConnector; | 16 class ApplicationConnector; |
16 class CommandBuffer; | 17 class CommandBuffer; |
17 using CommandBufferPtr = InterfacePtr<CommandBuffer>; | 18 using CommandBufferPtr = InterfacePtr<CommandBuffer>; |
18 | 19 |
19 // Provides an easy interface to create and use a GL context. | 20 // Provides an easy interface to create and use a GL context. |
20 // | 21 // |
21 // Instances of this object are not thread-safe and must be used on the same | 22 // Instances of this object are not thread-safe and must be used on the same |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 const MGLContext mgl_context_; | 102 const MGLContext mgl_context_; |
102 bool lost_ = false; | 103 bool lost_ = false; |
103 base::ObserverList<Observer> observers_; | 104 base::ObserverList<Observer> observers_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(GLContext); | 106 DISALLOW_COPY_AND_ASSIGN(GLContext); |
106 }; | 107 }; |
107 | 108 |
108 } // namespace mojo | 109 } // namespace mojo |
109 | 110 |
110 #endif // MOJO_GPU_GL_CONTEXT_H_ | 111 #endif // MOJO_GPU_GL_CONTEXT_H_ |
OLD | NEW |