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

Side by Side Diff: mojo/public/gles2/gles2_private.cc

Issue 218193002: Mojo: Move C gles2 header files to mojo/public/c/gles2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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
« no previous file with comments | « mojo/public/gles2/gles2_private.h ('k') | mojo/public/gles2/gles2_types.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/gles2/gles2_private.h" 5 #include "mojo/public/gles2/gles2_private.h"
6 6
7 #include <assert.h> 7 #include <assert.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "mojo/public/gles2/gles2.h" 10 #include "mojo/public/c/gles2/gles2.h"
11 #include "mojo/public/gles2/gles2_interface.h" 11 #include "mojo/public/gles2/gles2_interface.h"
12 12
13 static mojo::GLES2Support* g_gles2_support = NULL; 13 static mojo::GLES2Support* g_gles2_support = NULL;
14 static mojo::GLES2Interface* g_gles2_interface = NULL; 14 static mojo::GLES2Interface* g_gles2_interface = NULL;
15 15
16 extern "C" { 16 extern "C" {
17 17
18 void MojoGLES2Initialize(MojoAsyncWaiter* async_waiter) { 18 void MojoGLES2Initialize(MojoAsyncWaiter* async_waiter) {
19 assert(g_gles2_support); 19 assert(g_gles2_support);
20 return g_gles2_support->Initialize(async_waiter); 20 return g_gles2_support->Initialize(async_waiter);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 void* MojoGLES2GetContextSupport(MojoGLES2Context context) { 69 void* MojoGLES2GetContextSupport(MojoGLES2Context context) {
70 assert(g_gles2_support); 70 assert(g_gles2_support);
71 return g_gles2_support->GetContextSupport(context); 71 return g_gles2_support->GetContextSupport(context);
72 } 72 }
73 73
74 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \ 74 #define VISIT_GL_CALL(Function, ReturnType, PARAMETERS, ARGUMENTS) \
75 ReturnType gl##Function PARAMETERS { \ 75 ReturnType gl##Function PARAMETERS { \
76 return g_gles2_interface->Function ARGUMENTS; \ 76 return g_gles2_interface->Function ARGUMENTS; \
77 } 77 }
78 #include "mojo/public/gles2/gles2_call_visitor_autogen.h" 78 #include "mojo/public/c/gles2/gles2_call_visitor_autogen.h"
79 #undef VISIT_GL_CALL 79 #undef VISIT_GL_CALL
80 80
81 } // extern "C" 81 } // extern "C"
82 82
83 namespace mojo { 83 namespace mojo {
84 84
85 GLES2Support::~GLES2Support() {} 85 GLES2Support::~GLES2Support() {}
86 86
87 void GLES2Support::Init(GLES2Support* gles2_support) { 87 void GLES2Support::Init(GLES2Support* gles2_support) {
88 assert(!g_gles2_support); 88 assert(!g_gles2_support);
89 g_gles2_support = gles2_support; 89 g_gles2_support = gles2_support;
90 } 90 }
91 91
92 } // namespace mojo 92 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/gles2/gles2_private.h ('k') | mojo/public/gles2/gles2_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698