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

Side by Side Diff: mojo/gles2/control_thunks_impl.h

Issue 1686953003: Remove uses of base/lazy_instance (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_GLES2_CONTROL_THUNKS_IMPL_H_ 5 #ifndef MOJO_GLES2_CONTROL_THUNKS_IMPL_H_
6 #define MOJO_GLES2_CONTROL_THUNKS_IMPL_H_ 6 #define MOJO_GLES2_CONTROL_THUNKS_IMPL_H_
7 7
8 #include "base/lazy_instance.h"
9 #include "base/macros.h" 8 #include "base/macros.h"
10 #include "base/threading/thread_local.h" 9 #include "base/threading/thread_local.h"
11 #include "gpu/GLES2/gl2extchromium.h" 10 #include "gpu/GLES2/gl2extchromium.h"
12 #include "mojo/gles2/gles2_context.h" 11 #include "mojo/gles2/gles2_context.h"
13 #include "mojo/public/c/gpu/MGL/mgl.h" 12 #include "mojo/public/c/gpu/MGL/mgl.h"
14 #include "mojo/public/c/gpu/MGL/mgl_signal_sync_point.h" 13 #include "mojo/public/c/gpu/MGL/mgl_signal_sync_point.h"
15 14
16 namespace gpu { 15 namespace gpu {
17 namespace gles2 { 16 namespace gles2 {
18 class GLES2Interface; 17 class GLES2Interface;
(...skipping 30 matching lines...) Expand all
49 48
50 void* GetGLES2Interface(MGLContext context); 49 void* GetGLES2Interface(MGLContext context);
51 50
52 void SignalSyncPoint(uint32_t sync_point, 51 void SignalSyncPoint(uint32_t sync_point,
53 MGLSignalSyncPointCallback callback, 52 MGLSignalSyncPointCallback callback,
54 void* closure); 53 void* closure);
55 54
56 gpu::gles2::GLES2Interface* CurrentGLES2Interface(); 55 gpu::gles2::GLES2Interface* CurrentGLES2Interface();
57 56
58 private: 57 private:
59 friend base::DefaultLazyInstanceTraits<gles2::ControlThunksImpl>;
60 ControlThunksImpl(); 58 ControlThunksImpl();
61 ~ControlThunksImpl(); 59 ~ControlThunksImpl();
62 60
63 base::ThreadLocalPointer<GLES2Context> current_context_tls_; 61 base::ThreadLocalPointer<GLES2Context> current_context_tls_;
64 62
65 DISALLOW_COPY_AND_ASSIGN(ControlThunksImpl); 63 DISALLOW_COPY_AND_ASSIGN(ControlThunksImpl);
66 }; 64 };
67 65
68 } // namespace gles2 66 } // namespace gles2
69 67
70 #endif // MOJO_GLES2_CONTROL_THUNKS_IMPL_H_ 68 #endif // MOJO_GLES2_CONTROL_THUNKS_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/gles2/control_thunks_impl.cc » ('j') | mojo/message_pump/message_pump_mojo.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698