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

Side by Side Diff: mojo/gles2/gles2_impl.cc

Issue 1258693003: mojo: add GL_APIENTRY (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | mojo/public/platform/native/gles2_impl_chromium_copy_texture_thunks.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 #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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void MojoGLES2SignalSyncPoint(MojoGLES2Context context, 59 void MojoGLES2SignalSyncPoint(MojoGLES2Context context,
60 uint32_t sync_point, 60 uint32_t sync_point,
61 MojoGLES2SignalSyncPointCallback callback, 61 MojoGLES2SignalSyncPointCallback callback,
62 void* closure) { 62 void* closure) {
63 DCHECK(context); 63 DCHECK(context);
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_APIENTRY 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_occlusion_query_ext_autogen.h"
75 #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" 76 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_resize_autogen.h"
77 #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"
78 #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"
79 #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"
80 #undef VISIT_GL_CALL 80 #undef VISIT_GL_CALL
81 81
82 } // extern "C" 82 } // extern "C"
OLDNEW
« no previous file with comments | « no previous file | mojo/public/platform/native/gles2_impl_chromium_copy_texture_thunks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698