Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: mojo/gpu/gl_context.h

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/gpu/BUILD.gn ('k') | mojo/nacl/nonsfi/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « mojo/gpu/BUILD.gn ('k') | mojo/nacl/nonsfi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698