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 #include <stdint.h> |
| 6 |
5 #include <utility> | 7 #include <utility> |
6 | 8 |
7 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
8 #include "base/threading/thread_local.h" | 10 #include "base/threading/thread_local.h" |
9 #include "gpu/GLES2/gl2extchromium.h" | 11 #include "gpu/GLES2/gl2extchromium.h" |
10 #include "gpu/command_buffer/client/gles2_interface.h" | 12 #include "gpu/command_buffer/client/gles2_interface.h" |
11 #include "mojo/gles2/gles2_context.h" | 13 #include "mojo/gles2/gles2_context.h" |
12 // Even though this isn't used here, we need to include it to get the symbols to | 14 // Even though this isn't used here, we need to include it to get the symbols to |
13 // be exported in component build. | 15 // be exported in component build. |
14 #include "mojo/public/c/gles2/chromium_extension.h" | 16 #include "mojo/public/c/gles2/chromium_extension.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | 95 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ |
94 ReturnType GL_APIENTRY gl##Function PARAMETERS { \ | 96 ReturnType GL_APIENTRY gl##Function PARAMETERS { \ |
95 DCHECK(g_gpu_interface.Get().Get()); \ | 97 DCHECK(g_gpu_interface.Get().Get()); \ |
96 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ | 98 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ |
97 } | 99 } |
98 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" | 100 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" |
99 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h" | 101 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h" |
100 #undef VISIT_GL_CALL | 102 #undef VISIT_GL_CALL |
101 | 103 |
102 } // extern "C" | 104 } // extern "C" |
OLD | NEW |