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

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

Issue 453163002: Expose CHROMIUM_texture_mailbox/sync_point stubs in mojo public headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 "gpu/command_buffer/client/gles2_interface.h" 7 #include "gpu/command_buffer/client/gles2_interface.h"
8 #include "mojo/gles2/gles2_context.h" 8 #include "mojo/gles2/gles2_context.h"
9 #include "mojo/gles2/gles2_impl_export.h"
9 10
10 using mojo::gles2::GLES2Context; 11 using mojo::gles2::GLES2Context;
11 12
12 namespace { 13 namespace {
13 14
14 const MojoAsyncWaiter* g_async_waiter = NULL; 15 const MojoAsyncWaiter* g_async_waiter = NULL;
15 gpu::gles2::GLES2Interface* g_gpu_interface = NULL; 16 gpu::gles2::GLES2Interface* g_gpu_interface = NULL;
16 17
17 } // namespace 18 } // namespace
18 19
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 65 }
65 66
66 void* MojoGLES2GetGLES2Interface(MojoGLES2Context context) { 67 void* MojoGLES2GetGLES2Interface(MojoGLES2Context context) {
67 return static_cast<GLES2Context*>(context)->interface(); 68 return static_cast<GLES2Context*>(context)->interface();
68 } 69 }
69 70
70 void* MojoGLES2GetContextSupport(MojoGLES2Context context) { 71 void* MojoGLES2GetContextSupport(MojoGLES2Context context) {
71 return static_cast<GLES2Context*>(context)->context_support(); 72 return static_cast<GLES2Context*>(context)->context_support();
72 } 73 }
73 74
74 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ 75 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
75 ReturnType gl##Function PARAMETERS { \ 76 MOJO_GLES2_IMPL_EXPORT ReturnType gl##Function PARAMETERS { \
76 assert(g_gpu_interface); \ 77 assert(g_gpu_interface); \
77 return g_gpu_interface->Function ARGUMENTS; \ 78 return g_gpu_interface->Function ARGUMENTS; \
78 } 79 }
79 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h" 80 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
81 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_sync_point_autogen.h"
82 #include "mojo/public/c/gles2/gles2_call_visitor_chromium_texture_mailbox_autoge n.h"
80 #undef VISIT_GL_CALL 83 #undef VISIT_GL_CALL
81 84
82 } // extern "C" 85 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698