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

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

Issue 1180693002: Update from https://crrev.com/333737 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 6 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/go/go.py ('k') | mojo/services/view_manager/public/cpp/lib/view_private.h » ('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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 private: 42 private:
43 explicit GLContext(Shell* shell); 43 explicit GLContext(Shell* shell);
44 ~GLContext(); 44 ~GLContext();
45 45
46 static void ContextLostThunk(void* self); 46 static void ContextLostThunk(void* self);
47 void OnContextLost(); 47 void OnContextLost();
48 48
49 MojoGLES2Context context_; 49 MojoGLES2Context context_;
50 gpu::gles2::GLES2Interface* gl_; 50 gpu::gles2::GLES2Interface* gl_;
51 51
52 ObserverList<Observer> observers_; 52 base::ObserverList<Observer> observers_;
53 base::WeakPtrFactory<GLContext> weak_factory_; 53 base::WeakPtrFactory<GLContext> weak_factory_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(GLContext); 55 DISALLOW_COPY_AND_ASSIGN(GLContext);
56 }; 56 };
57 57
58 } // namespace mojo 58 } // namespace mojo
59 59
60 #endif // MOJO_GPU_GL_CONTEXT_H_ 60 #endif // MOJO_GPU_GL_CONTEXT_H_
OLDNEW
« no previous file with comments | « mojo/go/go.py ('k') | mojo/services/view_manager/public/cpp/lib/view_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698