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

Side by Side Diff: mojo/gpu/mojo_gles2_impl_autogen.cc

Issue 1307883004: Use C OpenGL interface in mojo::GLContext (Closed) Base URL: git@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
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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
11 #include "mojo/gpu/mojo_gles2_impl_autogen.h" 11 #include "mojo/gpu/mojo_gles2_impl_autogen.h"
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "mojo/public/c/gles2/chromium_bind_uniform_location.h" 14 #include "mojo/public/c/gles2/chromium_bind_uniform_location.h"
15 #include "mojo/public/c/gles2/chromium_map_sub.h"
15 #include "mojo/public/c/gles2/chromium_miscellaneous.h" 16 #include "mojo/public/c/gles2/chromium_miscellaneous.h"
16 #include "mojo/public/c/gles2/chromium_sub_image.h"
17 #include "mojo/public/c/gles2/chromium_sync_point.h" 17 #include "mojo/public/c/gles2/chromium_sync_point.h"
18 #include "mojo/public/c/gles2/chromium_texture_mailbox.h" 18 #include "mojo/public/c/gles2/chromium_texture_mailbox.h"
19 #include "mojo/public/c/gles2/ext_debug_marker.h"
19 #include "mojo/public/c/gles2/gles2.h" 20 #include "mojo/public/c/gles2/gles2.h"
20 #include "mojo/public/c/gles2/occlusion_query_ext.h" 21 #include "mojo/public/c/gles2/occlusion_query_ext.h"
22 #include "mojo/public/c/gles2/oes_vertex_array_object.h"
21 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h" 23 #include "mojo/public/c/gpu/MGL/mgl_onscreen.h"
22 24
23 namespace mojo { 25 namespace mojo {
24 26
25 void MojoGLES2Impl::ActiveTexture(GLenum texture) { 27 void MojoGLES2Impl::ActiveTexture(GLenum texture) {
26 MojoGLES2MakeCurrent(context_); 28 MojoGLES2MakeCurrent(context_);
27 glActiveTexture(texture); 29 glActiveTexture(texture);
28 } 30 }
29 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { 31 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) {
30 MojoGLES2MakeCurrent(context_); 32 MojoGLES2MakeCurrent(context_);
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 MojoGLES2MakeCurrent(context_); 1239 MojoGLES2MakeCurrent(context_);
1238 glGetQueryivEXT(target, pname, params); 1240 glGetQueryivEXT(target, pname, params);
1239 } 1241 }
1240 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id, 1242 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id,
1241 GLenum pname, 1243 GLenum pname,
1242 GLuint* params) { 1244 GLuint* params) {
1243 MojoGLES2MakeCurrent(context_); 1245 MojoGLES2MakeCurrent(context_);
1244 glGetQueryObjectuivEXT(id, pname, params); 1246 glGetQueryObjectuivEXT(id, pname, params);
1245 } 1247 }
1246 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) { 1248 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
1247 NOTREACHED() << "Unimplemented InsertEventMarkerEXT."; 1249 MojoGLES2MakeCurrent(context_);
1250 glInsertEventMarkerEXT(length, marker);
1248 } 1251 }
1249 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) { 1252 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
1250 NOTREACHED() << "Unimplemented PushGroupMarkerEXT."; 1253 MojoGLES2MakeCurrent(context_);
1254 glPushGroupMarkerEXT(length, marker);
1251 } 1255 }
1252 void MojoGLES2Impl::PopGroupMarkerEXT() { 1256 void MojoGLES2Impl::PopGroupMarkerEXT() {
1253 NOTREACHED() << "Unimplemented PopGroupMarkerEXT."; 1257 MojoGLES2MakeCurrent(context_);
1258 glPopGroupMarkerEXT();
1254 } 1259 }
1255 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) { 1260 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1256 NOTREACHED() << "Unimplemented GenVertexArraysOES."; 1261 MojoGLES2MakeCurrent(context_);
1262 glGenVertexArraysOES(n, arrays);
1257 } 1263 }
1258 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { 1264 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
1259 NOTREACHED() << "Unimplemented DeleteVertexArraysOES."; 1265 MojoGLES2MakeCurrent(context_);
1266 glDeleteVertexArraysOES(n, arrays);
1260 } 1267 }
1261 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) { 1268 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) {
1262 NOTREACHED() << "Unimplemented IsVertexArrayOES."; 1269 MojoGLES2MakeCurrent(context_);
1263 return 0; 1270 return glIsVertexArrayOES(array);
1264 } 1271 }
1265 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) { 1272 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) {
1266 NOTREACHED() << "Unimplemented BindVertexArrayOES."; 1273 MojoGLES2MakeCurrent(context_);
1274 glBindVertexArrayOES(array);
1267 } 1275 }
1268 void MojoGLES2Impl::SwapBuffers() { 1276 void MojoGLES2Impl::SwapBuffers() {
1269 NOTREACHED() << "Unimplemented SwapBuffers."; 1277 NOTREACHED() << "Unimplemented SwapBuffers.";
1270 } 1278 }
1271 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id, 1279 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1272 GLsizei count, 1280 GLsizei count,
1273 GLenum type, 1281 GLenum type,
1274 GLuint offset) { 1282 GLuint offset) {
1275 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; 1283 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM.";
1276 return 0; 1284 return 0;
1277 } 1285 }
1278 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { 1286 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) {
1279 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; 1287 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM.";
1280 return 0; 1288 return 0;
1281 } 1289 }
1282 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { 1290 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) {
1283 NOTREACHED() << "Unimplemented MapBufferCHROMIUM."; 1291 NOTREACHED() << "Unimplemented MapBufferCHROMIUM.";
1284 return 0; 1292 return 0;
1285 } 1293 }
1286 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { 1294 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) {
1287 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM."; 1295 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM.";
1288 return 0; 1296 return 0;
1289 } 1297 }
1290 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, 1298 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target,
1291 GLintptr offset, 1299 GLintptr offset,
1292 GLsizeiptr size, 1300 GLsizeiptr size,
1293 GLenum access) { 1301 GLenum access) {
1294 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; 1302 MojoGLES2MakeCurrent(context_);
1295 return 0; 1303 return glMapBufferSubDataCHROMIUM(target, offset, size, access);
1296 } 1304 }
1297 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { 1305 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) {
1298 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; 1306 MojoGLES2MakeCurrent(context_);
1307 glUnmapBufferSubDataCHROMIUM(mem);
1299 } 1308 }
1300 void* MojoGLES2Impl::MapBufferRange(GLenum target, 1309 void* MojoGLES2Impl::MapBufferRange(GLenum target,
1301 GLintptr offset, 1310 GLintptr offset,
1302 GLsizeiptr size, 1311 GLsizeiptr size,
1303 GLbitfield access) { 1312 GLbitfield access) {
1304 NOTREACHED() << "Unimplemented MapBufferRange."; 1313 NOTREACHED() << "Unimplemented MapBufferRange.";
1305 return 0; 1314 return 0;
1306 } 1315 }
1307 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) { 1316 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) {
1308 NOTREACHED() << "Unimplemented UnmapBuffer."; 1317 NOTREACHED() << "Unimplemented UnmapBuffer.";
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM."; 1583 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM.";
1575 } 1584 }
1576 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { 1585 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1577 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM."; 1586 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM.";
1578 } 1587 }
1579 void MojoGLES2Impl::BlendBarrierKHR() { 1588 void MojoGLES2Impl::BlendBarrierKHR() {
1580 NOTREACHED() << "Unimplemented BlendBarrierKHR."; 1589 NOTREACHED() << "Unimplemented BlendBarrierKHR.";
1581 } 1590 }
1582 1591
1583 } // namespace mojo 1592 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698