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

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

Issue 1320833003: Expose SignalSyncPoint through MGL api (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 3 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
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 "gpu/command_buffer/client/gles2_interface.h" 5 #include "gpu/command_buffer/client/gles2_interface.h"
6 #include "mojo/gles2/control_thunks_impl.h" 6 #include "mojo/gles2/control_thunks_impl.h"
7 #include "mojo/public/c/gles2/gles2.h" 7 #include "mojo/public/c/gles2/gles2.h"
8 #include "mojo/public/c/gpu/MGL/mgl.h" 8 #include "mojo/public/c/gpu/MGL/mgl.h"
9 9
10 extern "C" { 10 extern "C" {
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 void* MojoGLES2GetGLES2Interface(MojoGLES2Context context) { 39 void* MojoGLES2GetGLES2Interface(MojoGLES2Context context) {
40 return gles2::ControlThunksImpl::Get()->GetGLES2Interface(context); 40 return gles2::ControlThunksImpl::Get()->GetGLES2Interface(context);
41 } 41 }
42 42
43 void MojoGLES2SignalSyncPoint(MojoGLES2Context context, 43 void MojoGLES2SignalSyncPoint(MojoGLES2Context context,
44 uint32_t sync_point, 44 uint32_t sync_point,
45 MojoGLES2SignalSyncPointCallback callback, 45 MojoGLES2SignalSyncPointCallback callback,
46 void* closure) { 46 void* closure) {
47 gles2::ControlThunksImpl::Get()->SignalSyncPoint(context, sync_point, 47 gles2::ControlThunksImpl::Get()->SignalSyncPoint(sync_point, callback,
48 callback, closure); 48 closure);
49 } 49 }
50 50
51 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ 51 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
52 ReturnType GL_APIENTRY gl##Function PARAMETERS { \ 52 ReturnType GL_APIENTRY gl##Function PARAMETERS { \
53 auto interface = gles2::ControlThunksImpl::Get()->CurrentGLES2Interface(); \ 53 auto interface = gles2::ControlThunksImpl::Get()->CurrentGLES2Interface(); \
54 DCHECK(interface); \ 54 DCHECK(interface); \
55 return interface->Function ARGUMENTS; \ 55 return interface->Function ARGUMENTS; \
56 } 56 }
57 #include "mojo/public/platform/native/gles2/call_visitor_autogen.h" 57 #include "mojo/public/platform/native/gles2/call_visitor_autogen.h"
58 #include "mojo/public/platform/native/gles2/call_visitor_chromium_bind_uniform_l ocation_autogen.h" 58 #include "mojo/public/platform/native/gles2/call_visitor_chromium_bind_uniform_l ocation_autogen.h"
59 #include "mojo/public/platform/native/gles2/call_visitor_chromium_map_sub_autoge n.h" 59 #include "mojo/public/platform/native/gles2/call_visitor_chromium_map_sub_autoge n.h"
60 #include "mojo/public/platform/native/gles2/call_visitor_chromium_miscellaneous_ autogen.h" 60 #include "mojo/public/platform/native/gles2/call_visitor_chromium_miscellaneous_ autogen.h"
61 #include "mojo/public/platform/native/gles2/call_visitor_chromium_resize_autogen .h" 61 #include "mojo/public/platform/native/gles2/call_visitor_chromium_resize_autogen .h"
62 #include "mojo/public/platform/native/gles2/call_visitor_chromium_sync_point_aut ogen.h" 62 #include "mojo/public/platform/native/gles2/call_visitor_chromium_sync_point_aut ogen.h"
63 #include "mojo/public/platform/native/gles2/call_visitor_chromium_texture_mailbo x_autogen.h" 63 #include "mojo/public/platform/native/gles2/call_visitor_chromium_texture_mailbo x_autogen.h"
64 #include "mojo/public/platform/native/gles2/call_visitor_ext_debug_marker_autoge n.h" 64 #include "mojo/public/platform/native/gles2/call_visitor_ext_debug_marker_autoge n.h"
65 #include "mojo/public/platform/native/gles2/call_visitor_ext_discard_framebuffer _autogen.h" 65 #include "mojo/public/platform/native/gles2/call_visitor_ext_discard_framebuffer _autogen.h"
66 #include "mojo/public/platform/native/gles2/call_visitor_ext_multisampled_render _to_texture_autogen.h" 66 #include "mojo/public/platform/native/gles2/call_visitor_ext_multisampled_render _to_texture_autogen.h"
67 #include "mojo/public/platform/native/gles2/call_visitor_ext_texture_storage_aut ogen.h" 67 #include "mojo/public/platform/native/gles2/call_visitor_ext_texture_storage_aut ogen.h"
68 #include "mojo/public/platform/native/gles2/call_visitor_khr_blend_equation_adva nced_autogen.h" 68 #include "mojo/public/platform/native/gles2/call_visitor_khr_blend_equation_adva nced_autogen.h"
69 #include "mojo/public/platform/native/gles2/call_visitor_occlusion_query_ext_aut ogen.h" 69 #include "mojo/public/platform/native/gles2/call_visitor_occlusion_query_ext_aut ogen.h"
70 #include "mojo/public/platform/native/gles2/call_visitor_oes_vertex_array_object _autogen.h" 70 #include "mojo/public/platform/native/gles2/call_visitor_oes_vertex_array_object _autogen.h"
71 #undef VISIT_GL_CALL 71 #undef VISIT_GL_CALL
72 72
73 } // extern "C" 73 } // extern "C"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698