OLD | NEW |
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 "third_party/mojo/src/mojo/public/c/gles2/chromium_copy_texture.h" | 14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_extension.h" |
15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_framebuffer_multisam
ple.h" | |
16 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_image.h" | |
17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h" | |
18 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_pixel_transfer_buffe
r_object.h" | |
19 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" | |
20 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" | |
21 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h" | |
22 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" | 15 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" |
23 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h" | |
24 | 16 |
25 namespace mojo { | 17 namespace mojo { |
26 | 18 |
27 void MojoGLES2Impl::ActiveTexture(GLenum texture) { | 19 void MojoGLES2Impl::ActiveTexture(GLenum texture) { |
28 MojoGLES2MakeCurrent(context_); | 20 MojoGLES2MakeCurrent(context_); |
29 glActiveTexture(texture); | 21 glActiveTexture(texture); |
30 } | 22 } |
31 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { | 23 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) { |
32 MojoGLES2MakeCurrent(context_); | 24 MojoGLES2MakeCurrent(context_); |
33 glAttachShader(program, shader); | 25 glAttachShader(program, shader); |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 glShaderBinary(n, shaders, binaryformat, binary, length); | 804 glShaderBinary(n, shaders, binaryformat, binary, length); |
813 } | 805 } |
814 void MojoGLES2Impl::ShaderSource(GLuint shader, | 806 void MojoGLES2Impl::ShaderSource(GLuint shader, |
815 GLsizei count, | 807 GLsizei count, |
816 const GLchar* const* str, | 808 const GLchar* const* str, |
817 const GLint* length) { | 809 const GLint* length) { |
818 MojoGLES2MakeCurrent(context_); | 810 MojoGLES2MakeCurrent(context_); |
819 glShaderSource(shader, count, str, length); | 811 glShaderSource(shader, count, str, length); |
820 } | 812 } |
821 void MojoGLES2Impl::ShallowFinishCHROMIUM() { | 813 void MojoGLES2Impl::ShallowFinishCHROMIUM() { |
822 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM."; | 814 MojoGLES2MakeCurrent(context_); |
| 815 glShallowFinishCHROMIUM(); |
823 } | 816 } |
824 void MojoGLES2Impl::ShallowFlushCHROMIUM() { | 817 void MojoGLES2Impl::ShallowFlushCHROMIUM() { |
825 MojoGLES2MakeCurrent(context_); | 818 MojoGLES2MakeCurrent(context_); |
826 glShallowFlushCHROMIUM(); | 819 glShallowFlushCHROMIUM(); |
827 } | 820 } |
828 void MojoGLES2Impl::OrderingBarrierCHROMIUM() { | 821 void MojoGLES2Impl::OrderingBarrierCHROMIUM() { |
829 MojoGLES2MakeCurrent(context_); | 822 MojoGLES2MakeCurrent(context_); |
830 glOrderingBarrierCHROMIUM(); | 823 glOrderingBarrierCHROMIUM(); |
831 } | 824 } |
832 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) { | 825 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) { |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1234 GLsizei height) { | 1227 GLsizei height) { |
1235 MojoGLES2MakeCurrent(context_); | 1228 MojoGLES2MakeCurrent(context_); |
1236 glRenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat, | 1229 glRenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat, |
1237 width, height); | 1230 width, height); |
1238 } | 1231 } |
1239 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target, | 1232 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target, |
1240 GLsizei samples, | 1233 GLsizei samples, |
1241 GLenum internalformat, | 1234 GLenum internalformat, |
1242 GLsizei width, | 1235 GLsizei width, |
1243 GLsizei height) { | 1236 GLsizei height) { |
1244 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleEXT."; | 1237 MojoGLES2MakeCurrent(context_); |
| 1238 glRenderbufferStorageMultisampleEXT(target, samples, internalformat, width, |
| 1239 height); |
1245 } | 1240 } |
1246 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target, | 1241 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target, |
1247 GLenum attachment, | 1242 GLenum attachment, |
1248 GLenum textarget, | 1243 GLenum textarget, |
1249 GLuint texture, | 1244 GLuint texture, |
1250 GLint level, | 1245 GLint level, |
1251 GLsizei samples) { | 1246 GLsizei samples) { |
1252 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT."; | 1247 MojoGLES2MakeCurrent(context_); |
| 1248 glFramebufferTexture2DMultisampleEXT(target, attachment, textarget, texture, |
| 1249 level, samples); |
1253 } | 1250 } |
1254 void MojoGLES2Impl::TexStorage2DEXT(GLenum target, | 1251 void MojoGLES2Impl::TexStorage2DEXT(GLenum target, |
1255 GLsizei levels, | 1252 GLsizei levels, |
1256 GLenum internalFormat, | 1253 GLenum internalFormat, |
1257 GLsizei width, | 1254 GLsizei width, |
1258 GLsizei height) { | 1255 GLsizei height) { |
1259 NOTREACHED() << "Unimplemented TexStorage2DEXT."; | 1256 MojoGLES2MakeCurrent(context_); |
| 1257 glTexStorage2DEXT(target, levels, internalFormat, width, height); |
1260 } | 1258 } |
1261 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) { | 1259 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) { |
1262 MojoGLES2MakeCurrent(context_); | 1260 MojoGLES2MakeCurrent(context_); |
1263 glGenQueriesEXT(n, queries); | 1261 glGenQueriesEXT(n, queries); |
1264 } | 1262 } |
1265 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) { | 1263 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) { |
1266 MojoGLES2MakeCurrent(context_); | 1264 MojoGLES2MakeCurrent(context_); |
1267 glDeleteQueriesEXT(n, queries); | 1265 glDeleteQueriesEXT(n, queries); |
1268 } | 1266 } |
1269 void MojoGLES2Impl::QueryCounterEXT(GLuint id, GLenum target) { | 1267 void MojoGLES2Impl::QueryCounterEXT(GLuint id, GLenum target) { |
1270 NOTREACHED() << "Unimplemented QueryCounterEXT."; | 1268 MojoGLES2MakeCurrent(context_); |
| 1269 glQueryCounterEXT(id, target); |
1271 } | 1270 } |
1272 GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) { | 1271 GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) { |
1273 MojoGLES2MakeCurrent(context_); | 1272 MojoGLES2MakeCurrent(context_); |
1274 return glIsQueryEXT(id); | 1273 return glIsQueryEXT(id); |
1275 } | 1274 } |
1276 void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) { | 1275 void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) { |
1277 MojoGLES2MakeCurrent(context_); | 1276 MojoGLES2MakeCurrent(context_); |
1278 glBeginQueryEXT(target, id); | 1277 glBeginQueryEXT(target, id); |
1279 } | 1278 } |
1280 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) { | 1279 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) { |
1281 NOTREACHED() << "Unimplemented BeginTransformFeedback."; | 1280 NOTREACHED() << "Unimplemented BeginTransformFeedback."; |
1282 } | 1281 } |
1283 void MojoGLES2Impl::EndQueryEXT(GLenum target) { | 1282 void MojoGLES2Impl::EndQueryEXT(GLenum target) { |
1284 MojoGLES2MakeCurrent(context_); | 1283 MojoGLES2MakeCurrent(context_); |
1285 glEndQueryEXT(target); | 1284 glEndQueryEXT(target); |
1286 } | 1285 } |
1287 void MojoGLES2Impl::EndTransformFeedback() { | 1286 void MojoGLES2Impl::EndTransformFeedback() { |
1288 NOTREACHED() << "Unimplemented EndTransformFeedback."; | 1287 NOTREACHED() << "Unimplemented EndTransformFeedback."; |
1289 } | 1288 } |
1290 void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) { | 1289 void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) { |
1291 MojoGLES2MakeCurrent(context_); | 1290 MojoGLES2MakeCurrent(context_); |
1292 glGetQueryivEXT(target, pname, params); | 1291 glGetQueryivEXT(target, pname, params); |
1293 } | 1292 } |
1294 void MojoGLES2Impl::GetQueryObjectivEXT(GLuint id, | 1293 void MojoGLES2Impl::GetQueryObjectivEXT(GLuint id, |
1295 GLenum pname, | 1294 GLenum pname, |
1296 GLint* params) { | 1295 GLint* params) { |
1297 NOTREACHED() << "Unimplemented GetQueryObjectivEXT."; | 1296 MojoGLES2MakeCurrent(context_); |
| 1297 glGetQueryObjectivEXT(id, pname, params); |
1298 } | 1298 } |
1299 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id, | 1299 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id, |
1300 GLenum pname, | 1300 GLenum pname, |
1301 GLuint* params) { | 1301 GLuint* params) { |
1302 MojoGLES2MakeCurrent(context_); | 1302 MojoGLES2MakeCurrent(context_); |
1303 glGetQueryObjectuivEXT(id, pname, params); | 1303 glGetQueryObjectuivEXT(id, pname, params); |
1304 } | 1304 } |
1305 void MojoGLES2Impl::GetQueryObjecti64vEXT(GLuint id, | 1305 void MojoGLES2Impl::GetQueryObjecti64vEXT(GLuint id, |
1306 GLenum pname, | 1306 GLenum pname, |
1307 GLint64* params) { | 1307 GLint64* params) { |
1308 NOTREACHED() << "Unimplemented GetQueryObjecti64vEXT."; | 1308 MojoGLES2MakeCurrent(context_); |
| 1309 glGetQueryObjecti64vEXT(id, pname, params); |
1309 } | 1310 } |
1310 void MojoGLES2Impl::GetQueryObjectui64vEXT(GLuint id, | 1311 void MojoGLES2Impl::GetQueryObjectui64vEXT(GLuint id, |
1311 GLenum pname, | 1312 GLenum pname, |
1312 GLuint64* params) { | 1313 GLuint64* params) { |
1313 NOTREACHED() << "Unimplemented GetQueryObjectui64vEXT."; | 1314 MojoGLES2MakeCurrent(context_); |
| 1315 glGetQueryObjectui64vEXT(id, pname, params); |
1314 } | 1316 } |
1315 void MojoGLES2Impl::SetDisjointValueSyncCHROMIUM() { | 1317 void MojoGLES2Impl::SetDisjointValueSyncCHROMIUM() { |
1316 NOTREACHED() << "Unimplemented SetDisjointValueSyncCHROMIUM."; | 1318 MojoGLES2MakeCurrent(context_); |
| 1319 glSetDisjointValueSyncCHROMIUM(); |
1317 } | 1320 } |
1318 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) { | 1321 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) { |
1319 NOTREACHED() << "Unimplemented InsertEventMarkerEXT."; | 1322 MojoGLES2MakeCurrent(context_); |
| 1323 glInsertEventMarkerEXT(length, marker); |
1320 } | 1324 } |
1321 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) { | 1325 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) { |
1322 NOTREACHED() << "Unimplemented PushGroupMarkerEXT."; | 1326 MojoGLES2MakeCurrent(context_); |
| 1327 glPushGroupMarkerEXT(length, marker); |
1323 } | 1328 } |
1324 void MojoGLES2Impl::PopGroupMarkerEXT() { | 1329 void MojoGLES2Impl::PopGroupMarkerEXT() { |
1325 NOTREACHED() << "Unimplemented PopGroupMarkerEXT."; | 1330 MojoGLES2MakeCurrent(context_); |
| 1331 glPopGroupMarkerEXT(); |
1326 } | 1332 } |
1327 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) { | 1333 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) { |
1328 NOTREACHED() << "Unimplemented GenVertexArraysOES."; | 1334 MojoGLES2MakeCurrent(context_); |
| 1335 glGenVertexArraysOES(n, arrays); |
1329 } | 1336 } |
1330 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { | 1337 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { |
1331 NOTREACHED() << "Unimplemented DeleteVertexArraysOES."; | 1338 MojoGLES2MakeCurrent(context_); |
| 1339 glDeleteVertexArraysOES(n, arrays); |
1332 } | 1340 } |
1333 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) { | 1341 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) { |
1334 NOTREACHED() << "Unimplemented IsVertexArrayOES."; | 1342 MojoGLES2MakeCurrent(context_); |
1335 return 0; | 1343 return glIsVertexArrayOES(array); |
1336 } | 1344 } |
1337 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) { | 1345 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) { |
1338 NOTREACHED() << "Unimplemented BindVertexArrayOES."; | 1346 MojoGLES2MakeCurrent(context_); |
| 1347 glBindVertexArrayOES(array); |
1339 } | 1348 } |
1340 void MojoGLES2Impl::SwapBuffers() { | 1349 void MojoGLES2Impl::SwapBuffers() { |
1341 NOTREACHED() << "Unimplemented SwapBuffers."; | 1350 MojoGLES2MakeCurrent(context_); |
| 1351 glSwapBuffers(); |
1342 } | 1352 } |
1343 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id, | 1353 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id, |
1344 GLsizei count, | 1354 GLsizei count, |
1345 GLenum type, | 1355 GLenum type, |
1346 GLuint offset) { | 1356 GLuint offset) { |
1347 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; | 1357 MojoGLES2MakeCurrent(context_); |
1348 return 0; | 1358 return glGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset); |
1349 } | 1359 } |
1350 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { | 1360 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { |
1351 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; | 1361 MojoGLES2MakeCurrent(context_); |
1352 return 0; | 1362 return glEnableFeatureCHROMIUM(feature); |
1353 } | 1363 } |
1354 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { | 1364 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { |
1355 MojoGLES2MakeCurrent(context_); | 1365 MojoGLES2MakeCurrent(context_); |
1356 return glMapBufferCHROMIUM(target, access); | 1366 return glMapBufferCHROMIUM(target, access); |
1357 } | 1367 } |
1358 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { | 1368 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { |
1359 MojoGLES2MakeCurrent(context_); | 1369 MojoGLES2MakeCurrent(context_); |
1360 return glUnmapBufferCHROMIUM(target); | 1370 return glUnmapBufferCHROMIUM(target); |
1361 } | 1371 } |
1362 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, | 1372 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, |
1363 GLintptr offset, | 1373 GLintptr offset, |
1364 GLsizeiptr size, | 1374 GLsizeiptr size, |
1365 GLenum access) { | 1375 GLenum access) { |
1366 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; | 1376 MojoGLES2MakeCurrent(context_); |
1367 return 0; | 1377 return glMapBufferSubDataCHROMIUM(target, offset, size, access); |
1368 } | 1378 } |
1369 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { | 1379 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { |
1370 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; | 1380 MojoGLES2MakeCurrent(context_); |
| 1381 glUnmapBufferSubDataCHROMIUM(mem); |
1371 } | 1382 } |
1372 void* MojoGLES2Impl::MapBufferRange(GLenum target, | 1383 void* MojoGLES2Impl::MapBufferRange(GLenum target, |
1373 GLintptr offset, | 1384 GLintptr offset, |
1374 GLsizeiptr size, | 1385 GLsizeiptr size, |
1375 GLbitfield access) { | 1386 GLbitfield access) { |
1376 NOTREACHED() << "Unimplemented MapBufferRange."; | 1387 NOTREACHED() << "Unimplemented MapBufferRange."; |
1377 return 0; | 1388 return 0; |
1378 } | 1389 } |
1379 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) { | 1390 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) { |
1380 NOTREACHED() << "Unimplemented UnmapBuffer."; | 1391 NOTREACHED() << "Unimplemented UnmapBuffer."; |
(...skipping 12 matching lines...) Expand all Loading... |
1393 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, | 1404 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, |
1394 height, format, type, access); | 1405 height, format, type, access); |
1395 } | 1406 } |
1396 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { | 1407 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { |
1397 MojoGLES2MakeCurrent(context_); | 1408 MojoGLES2MakeCurrent(context_); |
1398 glUnmapTexSubImage2DCHROMIUM(mem); | 1409 glUnmapTexSubImage2DCHROMIUM(mem); |
1399 } | 1410 } |
1400 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, | 1411 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, |
1401 GLuint height, | 1412 GLuint height, |
1402 GLfloat scale_factor) { | 1413 GLfloat scale_factor) { |
1403 NOTREACHED() << "Unimplemented ResizeCHROMIUM."; | 1414 MojoGLES2MakeCurrent(context_); |
| 1415 glResizeCHROMIUM(width, height, scale_factor); |
1404 } | 1416 } |
1405 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { | 1417 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { |
1406 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM."; | 1418 MojoGLES2MakeCurrent(context_); |
1407 return 0; | 1419 return glGetRequestableExtensionsCHROMIUM(); |
1408 } | 1420 } |
1409 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) { | 1421 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) { |
1410 NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM."; | 1422 MojoGLES2MakeCurrent(context_); |
| 1423 glRequestExtensionCHROMIUM(extension); |
1411 } | 1424 } |
1412 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() { | 1425 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() { |
1413 NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM."; | 1426 MojoGLES2MakeCurrent(context_); |
| 1427 glRateLimitOffscreenContextCHROMIUM(); |
1414 } | 1428 } |
1415 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program, | 1429 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program, |
1416 GLsizei bufsize, | 1430 GLsizei bufsize, |
1417 GLsizei* size, | 1431 GLsizei* size, |
1418 void* info) { | 1432 void* info) { |
1419 NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM."; | 1433 MojoGLES2MakeCurrent(context_); |
| 1434 glGetProgramInfoCHROMIUM(program, bufsize, size, info); |
1420 } | 1435 } |
1421 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program, | 1436 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program, |
1422 GLsizei bufsize, | 1437 GLsizei bufsize, |
1423 GLsizei* size, | 1438 GLsizei* size, |
1424 void* info) { | 1439 void* info) { |
1425 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM."; | 1440 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM."; |
1426 } | 1441 } |
1427 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program, | 1442 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program, |
1428 GLsizei bufsize, | 1443 GLsizei bufsize, |
1429 GLsizei* size, | 1444 GLsizei* size, |
1430 void* info) { | 1445 void* info) { |
1431 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM."; | 1446 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM."; |
1432 } | 1447 } |
1433 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program, | 1448 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program, |
1434 GLsizei bufsize, | 1449 GLsizei bufsize, |
1435 GLsizei* size, | 1450 GLsizei* size, |
1436 void* info) { | 1451 void* info) { |
1437 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; | 1452 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; |
1438 } | 1453 } |
1439 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { | 1454 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { |
1440 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM."; | 1455 MojoGLES2MakeCurrent(context_); |
1441 return 0; | 1456 return glCreateStreamTextureCHROMIUM(texture); |
1442 } | 1457 } |
1443 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, | 1458 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, |
1444 GLsizei width, | 1459 GLsizei width, |
1445 GLsizei height, | 1460 GLsizei height, |
1446 GLenum internalformat) { | 1461 GLenum internalformat) { |
1447 MojoGLES2MakeCurrent(context_); | 1462 MojoGLES2MakeCurrent(context_); |
1448 return glCreateImageCHROMIUM(buffer, width, height, internalformat); | 1463 return glCreateImageCHROMIUM(buffer, width, height, internalformat); |
1449 } | 1464 } |
1450 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { | 1465 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { |
1451 MojoGLES2MakeCurrent(context_); | 1466 MojoGLES2MakeCurrent(context_); |
1452 glDestroyImageCHROMIUM(image_id); | 1467 glDestroyImageCHROMIUM(image_id); |
1453 } | 1468 } |
1454 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, | 1469 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, |
1455 GLsizei height, | 1470 GLsizei height, |
1456 GLenum internalformat, | 1471 GLenum internalformat, |
1457 GLenum usage) { | 1472 GLenum usage) { |
1458 MojoGLES2MakeCurrent(context_); | 1473 MojoGLES2MakeCurrent(context_); |
1459 return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat, | 1474 return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat, |
1460 usage); | 1475 usage); |
1461 } | 1476 } |
1462 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, | 1477 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, |
1463 GLsizei bufsize, | 1478 GLsizei bufsize, |
1464 GLsizei* length, | 1479 GLsizei* length, |
1465 char* source) { | 1480 char* source) { |
1466 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE."; | 1481 MojoGLES2MakeCurrent(context_); |
| 1482 glGetTranslatedShaderSourceANGLE(shader, bufsize, length, source); |
1467 } | 1483 } |
1468 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, | 1484 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, |
1469 GLint y, | 1485 GLint y, |
1470 GLint width, | 1486 GLint width, |
1471 GLint height) { | 1487 GLint height) { |
1472 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM."; | 1488 MojoGLES2MakeCurrent(context_); |
| 1489 glPostSubBufferCHROMIUM(x, y, width, height); |
1473 } | 1490 } |
1474 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, | 1491 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, |
1475 GLsizei width, | 1492 GLsizei width, |
1476 GLsizei height, | 1493 GLsizei height, |
1477 GLuint ioSurfaceId, | 1494 GLuint ioSurfaceId, |
1478 GLuint plane) { | 1495 GLuint plane) { |
1479 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM."; | 1496 MojoGLES2MakeCurrent(context_); |
| 1497 glTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane); |
1480 } | 1498 } |
1481 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, | 1499 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, |
1482 GLenum source_id, | 1500 GLenum source_id, |
1483 GLenum dest_id, | 1501 GLenum dest_id, |
1484 GLint internalformat, | 1502 GLint internalformat, |
1485 GLenum dest_type, | 1503 GLenum dest_type, |
1486 GLboolean unpack_flip_y, | 1504 GLboolean unpack_flip_y, |
1487 GLboolean unpack_premultiply_alpha, | 1505 GLboolean unpack_premultiply_alpha, |
1488 GLboolean unpack_unmultiply_alpha) { | 1506 GLboolean unpack_unmultiply_alpha) { |
1489 MojoGLES2MakeCurrent(context_); | 1507 MojoGLES2MakeCurrent(context_); |
(...skipping 14 matching lines...) Expand all Loading... |
1504 GLboolean unpack_premultiply_alpha, | 1522 GLboolean unpack_premultiply_alpha, |
1505 GLboolean unpack_unmultiply_alpha) { | 1523 GLboolean unpack_unmultiply_alpha) { |
1506 MojoGLES2MakeCurrent(context_); | 1524 MojoGLES2MakeCurrent(context_); |
1507 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, | 1525 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, |
1508 width, height, unpack_flip_y, | 1526 width, height, unpack_flip_y, |
1509 unpack_premultiply_alpha, unpack_unmultiply_alpha); | 1527 unpack_premultiply_alpha, unpack_unmultiply_alpha); |
1510 } | 1528 } |
1511 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, | 1529 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, |
1512 GLenum source_id, | 1530 GLenum source_id, |
1513 GLenum dest_id) { | 1531 GLenum dest_id) { |
1514 NOTREACHED() << "Unimplemented CompressedCopyTextureCHROMIUM."; | 1532 MojoGLES2MakeCurrent(context_); |
| 1533 glCompressedCopyTextureCHROMIUM(target, source_id, dest_id); |
1515 } | 1534 } |
1516 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, | 1535 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, |
1517 GLenum source_id, | 1536 GLenum source_id, |
1518 GLenum dest_id, | 1537 GLenum dest_id, |
1519 GLint xoffset, | 1538 GLint xoffset, |
1520 GLint yoffset, | 1539 GLint yoffset, |
1521 GLint x, | 1540 GLint x, |
1522 GLint y, | 1541 GLint y, |
1523 GLsizei width, | 1542 GLsizei width, |
1524 GLsizei height) { | 1543 GLsizei height) { |
1525 NOTREACHED() << "Unimplemented CompressedCopySubTextureCHROMIUM."; | 1544 MojoGLES2MakeCurrent(context_); |
| 1545 glCompressedCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, |
| 1546 yoffset, x, y, width, height); |
1526 } | 1547 } |
1527 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, | 1548 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, |
1528 GLint first, | 1549 GLint first, |
1529 GLsizei count, | 1550 GLsizei count, |
1530 GLsizei primcount) { | 1551 GLsizei primcount) { |
1531 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE."; | 1552 MojoGLES2MakeCurrent(context_); |
| 1553 glDrawArraysInstancedANGLE(mode, first, count, primcount); |
1532 } | 1554 } |
1533 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, | 1555 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, |
1534 GLsizei count, | 1556 GLsizei count, |
1535 GLenum type, | 1557 GLenum type, |
1536 const void* indices, | 1558 const void* indices, |
1537 GLsizei primcount) { | 1559 GLsizei primcount) { |
1538 NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE."; | 1560 MojoGLES2MakeCurrent(context_); |
| 1561 glDrawElementsInstancedANGLE(mode, count, type, indices, primcount); |
1539 } | 1562 } |
1540 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { | 1563 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { |
1541 NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE."; | 1564 MojoGLES2MakeCurrent(context_); |
| 1565 glVertexAttribDivisorANGLE(index, divisor); |
1542 } | 1566 } |
1543 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) { | 1567 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) { |
1544 MojoGLES2MakeCurrent(context_); | 1568 MojoGLES2MakeCurrent(context_); |
1545 glGenMailboxCHROMIUM(mailbox); | 1569 glGenMailboxCHROMIUM(mailbox); |
1546 } | 1570 } |
1547 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target, | 1571 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target, |
1548 const GLbyte* mailbox) { | 1572 const GLbyte* mailbox) { |
1549 MojoGLES2MakeCurrent(context_); | 1573 MojoGLES2MakeCurrent(context_); |
1550 glProduceTextureCHROMIUM(target, mailbox); | 1574 glProduceTextureCHROMIUM(target, mailbox); |
1551 } | 1575 } |
1552 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture, | 1576 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture, |
1553 GLenum target, | 1577 GLenum target, |
1554 const GLbyte* mailbox) { | 1578 const GLbyte* mailbox) { |
1555 MojoGLES2MakeCurrent(context_); | 1579 MojoGLES2MakeCurrent(context_); |
1556 glProduceTextureDirectCHROMIUM(texture, target, mailbox); | 1580 glProduceTextureDirectCHROMIUM(texture, target, mailbox); |
1557 } | 1581 } |
1558 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target, | 1582 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target, |
1559 const GLbyte* mailbox) { | 1583 const GLbyte* mailbox) { |
1560 MojoGLES2MakeCurrent(context_); | 1584 MojoGLES2MakeCurrent(context_); |
1561 glConsumeTextureCHROMIUM(target, mailbox); | 1585 glConsumeTextureCHROMIUM(target, mailbox); |
1562 } | 1586 } |
1563 GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target, | 1587 GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target, |
1564 const GLbyte* mailbox) { | 1588 const GLbyte* mailbox) { |
1565 MojoGLES2MakeCurrent(context_); | 1589 MojoGLES2MakeCurrent(context_); |
1566 return glCreateAndConsumeTextureCHROMIUM(target, mailbox); | 1590 return glCreateAndConsumeTextureCHROMIUM(target, mailbox); |
1567 } | 1591 } |
1568 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program, | 1592 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program, |
1569 GLint location, | 1593 GLint location, |
1570 const char* name) { | 1594 const char* name) { |
1571 NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM."; | 1595 MojoGLES2MakeCurrent(context_); |
| 1596 glBindUniformLocationCHROMIUM(program, location, name); |
1572 } | 1597 } |
1573 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) { | 1598 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) { |
1574 NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM."; | 1599 MojoGLES2MakeCurrent(context_); |
| 1600 glGenValuebuffersCHROMIUM(n, buffers); |
1575 } | 1601 } |
1576 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n, | 1602 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n, |
1577 const GLuint* valuebuffers) { | 1603 const GLuint* valuebuffers) { |
1578 NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM."; | 1604 MojoGLES2MakeCurrent(context_); |
| 1605 glDeleteValuebuffersCHROMIUM(n, valuebuffers); |
1579 } | 1606 } |
1580 GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) { | 1607 GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) { |
1581 NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM."; | 1608 MojoGLES2MakeCurrent(context_); |
1582 return 0; | 1609 return glIsValuebufferCHROMIUM(valuebuffer); |
1583 } | 1610 } |
1584 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) { | 1611 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) { |
1585 NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM."; | 1612 MojoGLES2MakeCurrent(context_); |
| 1613 glBindValuebufferCHROMIUM(target, valuebuffer); |
1586 } | 1614 } |
1587 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) { | 1615 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) { |
1588 NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM."; | 1616 MojoGLES2MakeCurrent(context_); |
| 1617 glSubscribeValueCHROMIUM(target, subscription); |
1589 } | 1618 } |
1590 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { | 1619 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { |
1591 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM."; | 1620 MojoGLES2MakeCurrent(context_); |
| 1621 glPopulateSubscribedValuesCHROMIUM(target); |
1592 } | 1622 } |
1593 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, | 1623 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, |
1594 GLenum target, | 1624 GLenum target, |
1595 GLenum subscription) { | 1625 GLenum subscription) { |
1596 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; | 1626 MojoGLES2MakeCurrent(context_); |
| 1627 glUniformValuebufferCHROMIUM(location, target, subscription); |
1597 } | 1628 } |
1598 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1629 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1599 MojoGLES2MakeCurrent(context_); | 1630 MojoGLES2MakeCurrent(context_); |
1600 glBindTexImage2DCHROMIUM(target, imageId); | 1631 glBindTexImage2DCHROMIUM(target, imageId); |
1601 } | 1632 } |
1602 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1633 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1603 MojoGLES2MakeCurrent(context_); | 1634 MojoGLES2MakeCurrent(context_); |
1604 glReleaseTexImage2DCHROMIUM(target, imageId); | 1635 glReleaseTexImage2DCHROMIUM(target, imageId); |
1605 } | 1636 } |
1606 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, | 1637 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, |
1607 const char* trace_name) { | 1638 const char* trace_name) { |
1608 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM."; | 1639 MojoGLES2MakeCurrent(context_); |
| 1640 glTraceBeginCHROMIUM(category_name, trace_name); |
1609 } | 1641 } |
1610 void MojoGLES2Impl::TraceEndCHROMIUM() { | 1642 void MojoGLES2Impl::TraceEndCHROMIUM() { |
1611 NOTREACHED() << "Unimplemented TraceEndCHROMIUM."; | 1643 MojoGLES2MakeCurrent(context_); |
| 1644 glTraceEndCHROMIUM(); |
1612 } | 1645 } |
1613 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, | 1646 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, |
1614 GLsizei count, | 1647 GLsizei count, |
1615 const GLenum* attachments) { | 1648 const GLenum* attachments) { |
1616 NOTREACHED() << "Unimplemented DiscardFramebufferEXT."; | 1649 MojoGLES2MakeCurrent(context_); |
| 1650 glDiscardFramebufferEXT(target, count, attachments); |
1617 } | 1651 } |
1618 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) { | 1652 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) { |
1619 NOTREACHED() << "Unimplemented LoseContextCHROMIUM."; | 1653 MojoGLES2MakeCurrent(context_); |
| 1654 glLoseContextCHROMIUM(current, other); |
1620 } | 1655 } |
1621 GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() { | 1656 GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() { |
1622 MojoGLES2MakeCurrent(context_); | 1657 MojoGLES2MakeCurrent(context_); |
1623 return glInsertSyncPointCHROMIUM(); | 1658 return glInsertSyncPointCHROMIUM(); |
1624 } | 1659 } |
1625 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) { | 1660 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) { |
1626 MojoGLES2MakeCurrent(context_); | 1661 MojoGLES2MakeCurrent(context_); |
1627 glWaitSyncPointCHROMIUM(sync_point); | 1662 glWaitSyncPointCHROMIUM(sync_point); |
1628 } | 1663 } |
1629 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) { | 1664 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) { |
1630 NOTREACHED() << "Unimplemented DrawBuffersEXT."; | 1665 MojoGLES2MakeCurrent(context_); |
| 1666 glDrawBuffersEXT(count, bufs); |
1631 } | 1667 } |
1632 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() { | 1668 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() { |
1633 NOTREACHED() << "Unimplemented DiscardBackbufferCHROMIUM."; | 1669 MojoGLES2MakeCurrent(context_); |
| 1670 glDiscardBackbufferCHROMIUM(); |
1634 } | 1671 } |
1635 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, | 1672 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order, |
1636 GLenum plane_transform, | 1673 GLenum plane_transform, |
1637 GLuint overlay_texture_id, | 1674 GLuint overlay_texture_id, |
1638 GLint bounds_x, | 1675 GLint bounds_x, |
1639 GLint bounds_y, | 1676 GLint bounds_y, |
1640 GLint bounds_width, | 1677 GLint bounds_width, |
1641 GLint bounds_height, | 1678 GLint bounds_height, |
1642 GLfloat uv_x, | 1679 GLfloat uv_x, |
1643 GLfloat uv_y, | 1680 GLfloat uv_y, |
1644 GLfloat uv_width, | 1681 GLfloat uv_width, |
1645 GLfloat uv_height) { | 1682 GLfloat uv_height) { |
1646 NOTREACHED() << "Unimplemented ScheduleOverlayPlaneCHROMIUM."; | 1683 MojoGLES2MakeCurrent(context_); |
| 1684 glScheduleOverlayPlaneCHROMIUM( |
| 1685 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, |
| 1686 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); |
1647 } | 1687 } |
1648 void MojoGLES2Impl::SwapInterval(GLint interval) { | 1688 void MojoGLES2Impl::SwapInterval(GLint interval) { |
1649 NOTREACHED() << "Unimplemented SwapInterval."; | 1689 MojoGLES2MakeCurrent(context_); |
| 1690 glSwapInterval(interval); |
1650 } | 1691 } |
1651 void MojoGLES2Impl::FlushDriverCachesCHROMIUM() { | 1692 void MojoGLES2Impl::FlushDriverCachesCHROMIUM() { |
1652 NOTREACHED() << "Unimplemented FlushDriverCachesCHROMIUM."; | 1693 MojoGLES2MakeCurrent(context_); |
| 1694 glFlushDriverCachesCHROMIUM(); |
1653 } | 1695 } |
1654 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) { | 1696 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) { |
1655 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM."; | 1697 MojoGLES2MakeCurrent(context_); |
| 1698 glMatrixLoadfCHROMIUM(matrixMode, m); |
1656 } | 1699 } |
1657 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { | 1700 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { |
1658 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM."; | 1701 MojoGLES2MakeCurrent(context_); |
| 1702 glMatrixLoadIdentityCHROMIUM(matrixMode); |
1659 } | 1703 } |
1660 GLuint MojoGLES2Impl::GenPathsCHROMIUM(GLsizei range) { | 1704 GLuint MojoGLES2Impl::GenPathsCHROMIUM(GLsizei range) { |
1661 NOTREACHED() << "Unimplemented GenPathsCHROMIUM."; | 1705 MojoGLES2MakeCurrent(context_); |
1662 return 0; | 1706 return glGenPathsCHROMIUM(range); |
1663 } | 1707 } |
1664 void MojoGLES2Impl::DeletePathsCHROMIUM(GLuint path, GLsizei range) { | 1708 void MojoGLES2Impl::DeletePathsCHROMIUM(GLuint path, GLsizei range) { |
1665 NOTREACHED() << "Unimplemented DeletePathsCHROMIUM."; | 1709 MojoGLES2MakeCurrent(context_); |
| 1710 glDeletePathsCHROMIUM(path, range); |
1666 } | 1711 } |
1667 GLboolean MojoGLES2Impl::IsPathCHROMIUM(GLuint path) { | 1712 GLboolean MojoGLES2Impl::IsPathCHROMIUM(GLuint path) { |
1668 NOTREACHED() << "Unimplemented IsPathCHROMIUM."; | 1713 MojoGLES2MakeCurrent(context_); |
1669 return 0; | 1714 return glIsPathCHROMIUM(path); |
1670 } | 1715 } |
1671 void MojoGLES2Impl::PathCommandsCHROMIUM(GLuint path, | 1716 void MojoGLES2Impl::PathCommandsCHROMIUM(GLuint path, |
1672 GLsizei numCommands, | 1717 GLsizei numCommands, |
1673 const GLubyte* commands, | 1718 const GLubyte* commands, |
1674 GLsizei numCoords, | 1719 GLsizei numCoords, |
1675 GLenum coordType, | 1720 GLenum coordType, |
1676 const GLvoid* coords) { | 1721 const GLvoid* coords) { |
1677 NOTREACHED() << "Unimplemented PathCommandsCHROMIUM."; | 1722 MojoGLES2MakeCurrent(context_); |
| 1723 glPathCommandsCHROMIUM(path, numCommands, commands, numCoords, coordType, |
| 1724 coords); |
1678 } | 1725 } |
1679 void MojoGLES2Impl::PathParameterfCHROMIUM(GLuint path, | 1726 void MojoGLES2Impl::PathParameterfCHROMIUM(GLuint path, |
1680 GLenum pname, | 1727 GLenum pname, |
1681 GLfloat value) { | 1728 GLfloat value) { |
1682 NOTREACHED() << "Unimplemented PathParameterfCHROMIUM."; | 1729 MojoGLES2MakeCurrent(context_); |
| 1730 glPathParameterfCHROMIUM(path, pname, value); |
1683 } | 1731 } |
1684 void MojoGLES2Impl::PathParameteriCHROMIUM(GLuint path, | 1732 void MojoGLES2Impl::PathParameteriCHROMIUM(GLuint path, |
1685 GLenum pname, | 1733 GLenum pname, |
1686 GLint value) { | 1734 GLint value) { |
1687 NOTREACHED() << "Unimplemented PathParameteriCHROMIUM."; | 1735 MojoGLES2MakeCurrent(context_); |
| 1736 glPathParameteriCHROMIUM(path, pname, value); |
1688 } | 1737 } |
1689 void MojoGLES2Impl::PathStencilFuncCHROMIUM(GLenum func, | 1738 void MojoGLES2Impl::PathStencilFuncCHROMIUM(GLenum func, |
1690 GLint ref, | 1739 GLint ref, |
1691 GLuint mask) { | 1740 GLuint mask) { |
1692 NOTREACHED() << "Unimplemented PathStencilFuncCHROMIUM."; | 1741 MojoGLES2MakeCurrent(context_); |
| 1742 glPathStencilFuncCHROMIUM(func, ref, mask); |
1693 } | 1743 } |
1694 void MojoGLES2Impl::StencilFillPathCHROMIUM(GLuint path, | 1744 void MojoGLES2Impl::StencilFillPathCHROMIUM(GLuint path, |
1695 GLenum fillMode, | 1745 GLenum fillMode, |
1696 GLuint mask) { | 1746 GLuint mask) { |
1697 NOTREACHED() << "Unimplemented StencilFillPathCHROMIUM."; | 1747 MojoGLES2MakeCurrent(context_); |
| 1748 glStencilFillPathCHROMIUM(path, fillMode, mask); |
1698 } | 1749 } |
1699 void MojoGLES2Impl::StencilStrokePathCHROMIUM(GLuint path, | 1750 void MojoGLES2Impl::StencilStrokePathCHROMIUM(GLuint path, |
1700 GLint reference, | 1751 GLint reference, |
1701 GLuint mask) { | 1752 GLuint mask) { |
1702 NOTREACHED() << "Unimplemented StencilStrokePathCHROMIUM."; | 1753 MojoGLES2MakeCurrent(context_); |
| 1754 glStencilStrokePathCHROMIUM(path, reference, mask); |
1703 } | 1755 } |
1704 void MojoGLES2Impl::CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) { | 1756 void MojoGLES2Impl::CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) { |
1705 NOTREACHED() << "Unimplemented CoverFillPathCHROMIUM."; | 1757 MojoGLES2MakeCurrent(context_); |
| 1758 glCoverFillPathCHROMIUM(path, coverMode); |
1706 } | 1759 } |
1707 void MojoGLES2Impl::CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) { | 1760 void MojoGLES2Impl::CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) { |
1708 NOTREACHED() << "Unimplemented CoverStrokePathCHROMIUM."; | 1761 MojoGLES2MakeCurrent(context_); |
| 1762 glCoverStrokePathCHROMIUM(path, coverMode); |
1709 } | 1763 } |
1710 void MojoGLES2Impl::StencilThenCoverFillPathCHROMIUM(GLuint path, | 1764 void MojoGLES2Impl::StencilThenCoverFillPathCHROMIUM(GLuint path, |
1711 GLenum fillMode, | 1765 GLenum fillMode, |
1712 GLuint mask, | 1766 GLuint mask, |
1713 GLenum coverMode) { | 1767 GLenum coverMode) { |
1714 NOTREACHED() << "Unimplemented StencilThenCoverFillPathCHROMIUM."; | 1768 MojoGLES2MakeCurrent(context_); |
| 1769 glStencilThenCoverFillPathCHROMIUM(path, fillMode, mask, coverMode); |
1715 } | 1770 } |
1716 void MojoGLES2Impl::StencilThenCoverStrokePathCHROMIUM(GLuint path, | 1771 void MojoGLES2Impl::StencilThenCoverStrokePathCHROMIUM(GLuint path, |
1717 GLint reference, | 1772 GLint reference, |
1718 GLuint mask, | 1773 GLuint mask, |
1719 GLenum coverMode) { | 1774 GLenum coverMode) { |
1720 NOTREACHED() << "Unimplemented StencilThenCoverStrokePathCHROMIUM."; | 1775 MojoGLES2MakeCurrent(context_); |
| 1776 glStencilThenCoverStrokePathCHROMIUM(path, reference, mask, coverMode); |
1721 } | 1777 } |
1722 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { | 1778 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { |
1723 NOTREACHED() << "Unimplemented GetGraphicsResetStatusKHR."; | 1779 MojoGLES2MakeCurrent(context_); |
1724 return 0; | 1780 return glGetGraphicsResetStatusKHR(); |
1725 } | 1781 } |
1726 void MojoGLES2Impl::BlendBarrierKHR() { | 1782 void MojoGLES2Impl::BlendBarrierKHR() { |
1727 NOTREACHED() << "Unimplemented BlendBarrierKHR."; | 1783 MojoGLES2MakeCurrent(context_); |
| 1784 glBlendBarrierKHR(); |
1728 } | 1785 } |
1729 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() { | 1786 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() { |
1730 NOTREACHED() << "Unimplemented ApplyScreenSpaceAntialiasingCHROMIUM."; | 1787 MojoGLES2MakeCurrent(context_); |
| 1788 glApplyScreenSpaceAntialiasingCHROMIUM(); |
1731 } | 1789 } |
1732 | 1790 |
1733 } // namespace mojo | 1791 } // namespace mojo |
OLD | NEW |