| 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 "mojo/public/c/gles2/gles2.h" | 5 #include "mojo/public/c/gles2/gles2.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/threading/thread_local.h" | 8 #include "base/threading/thread_local.h" |
| 9 #include "gpu/GLES2/gl2extchromium.h" | 9 #include "gpu/GLES2/gl2extchromium.h" |
| 10 #include "gpu/command_buffer/client/gles2_interface.h" | 10 #include "gpu/command_buffer/client/gles2_interface.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 return static_cast<GLES2Context*>(context)->context_support(); | 86 return static_cast<GLES2Context*>(context)->context_support(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | 89 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ |
| 90 ReturnType GL_APIENTRY gl##Function PARAMETERS { \ | 90 ReturnType GL_APIENTRY gl##Function PARAMETERS { \ |
| 91 DCHECK(g_gpu_interface.Get().Get()); \ | 91 DCHECK(g_gpu_interface.Get().Get()); \ |
| 92 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ | 92 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ |
| 93 } | 93 } |
| 94 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" | 94 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" |
| 95 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_copy_texture_autogen.h
" | 95 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_copy_texture_autogen.h
" |
| 96 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_extension_autogen.h" |
| 96 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_framebuffer_multisampl
e_autogen.h" | 97 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_framebuffer_multisampl
e_autogen.h" |
| 97 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_image_autogen.h" | 98 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_image_autogen.h" |
| 98 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_miscellaneous_autogen.
h" | 99 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_miscellaneous_autogen.
h" |
| 99 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_pixel_transfer_buffer_
object_autogen.h" | 100 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_pixel_transfer_buffer_
object_autogen.h" |
| 100 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sub_image_autogen.h" | 101 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sub_image_autogen.h" |
| 101 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h" | 102 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h" |
| 102 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge
n.h" | 103 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge
n.h" |
| 103 #include "mojo/public/c/gles2/gles2_call_visitor_occlusion_query_ext_autogen.h" | 104 #include "mojo/public/c/gles2/gles2_call_visitor_occlusion_query_ext_autogen.h" |
| 104 #undef VISIT_GL_CALL | 105 #undef VISIT_GL_CALL |
| 105 | 106 |
| 106 } // extern "C" | 107 } // extern "C" |
| OLD | NEW |