| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 GLES2Context* client = static_cast<GLES2Context*>(context); | 64 GLES2Context* client = static_cast<GLES2Context*>(context); |
| 65 client->SignalSyncPoint(sync_point, callback, closure); | 65 client->SignalSyncPoint(sync_point, callback, closure); |
| 66 } | 66 } |
| 67 | 67 |
| 68 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ | 68 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ |
| 69 ReturnType gl##Function PARAMETERS { \ | 69 ReturnType gl##Function PARAMETERS { \ |
| 70 DCHECK(g_gpu_interface.Get().Get()); \ | 70 DCHECK(g_gpu_interface.Get().Get()); \ |
| 71 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ | 71 return g_gpu_interface.Get().Get()->Function ARGUMENTS; \ |
| 72 } | 72 } |
| 73 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" | 73 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" |
| 74 #include "mojo/public/c/gles2/gles2_call_visitor_occlusion_query_ext_autogen.h" |
| 74 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_miscellaneous_autogen.
h" | 75 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_miscellaneous_autogen.
h" |
| 76 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_resize_autogen.h" |
| 75 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sub_image_autogen.h" | 77 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sub_image_autogen.h" |
| 76 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h" | 78 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h" |
| 77 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge
n.h" | 79 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge
n.h" |
| 78 #include "mojo/public/c/gles2/gles2_call_visitor_occlusion_query_ext_autogen.h" | |
| 79 #undef VISIT_GL_CALL | 80 #undef VISIT_GL_CALL |
| 80 | 81 |
| 81 } // extern "C" | 82 } // extern "C" |
| OLD | NEW |