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

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

Issue 1349233002: Mandoline: Enable more GL commands which are used by WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 // 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_copy_texture.h"
15 #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_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_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_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_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_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_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/chromium_texture_mailbox.h"
22 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" 23 #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 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h"
24 25
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 glShaderBinary(n, shaders, binaryformat, binary, length); 813 glShaderBinary(n, shaders, binaryformat, binary, length);
813 } 814 }
814 void MojoGLES2Impl::ShaderSource(GLuint shader, 815 void MojoGLES2Impl::ShaderSource(GLuint shader,
815 GLsizei count, 816 GLsizei count,
816 const GLchar* const* str, 817 const GLchar* const* str,
817 const GLint* length) { 818 const GLint* length) {
818 MojoGLES2MakeCurrent(context_); 819 MojoGLES2MakeCurrent(context_);
819 glShaderSource(shader, count, str, length); 820 glShaderSource(shader, count, str, length);
820 } 821 }
821 void MojoGLES2Impl::ShallowFinishCHROMIUM() { 822 void MojoGLES2Impl::ShallowFinishCHROMIUM() {
822 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM."; 823 MojoGLES2MakeCurrent(context_);
824 glShallowFinishCHROMIUM();
823 } 825 }
824 void MojoGLES2Impl::ShallowFlushCHROMIUM() { 826 void MojoGLES2Impl::ShallowFlushCHROMIUM() {
825 MojoGLES2MakeCurrent(context_); 827 MojoGLES2MakeCurrent(context_);
826 glShallowFlushCHROMIUM(); 828 glShallowFlushCHROMIUM();
827 } 829 }
828 void MojoGLES2Impl::OrderingBarrierCHROMIUM() { 830 void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
829 MojoGLES2MakeCurrent(context_); 831 MojoGLES2MakeCurrent(context_);
830 glOrderingBarrierCHROMIUM(); 832 glOrderingBarrierCHROMIUM();
831 } 833 }
832 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) { 834 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) {
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 GLuint texture, 1251 GLuint texture,
1250 GLint level, 1252 GLint level,
1251 GLsizei samples) { 1253 GLsizei samples) {
1252 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT."; 1254 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT.";
1253 } 1255 }
1254 void MojoGLES2Impl::TexStorage2DEXT(GLenum target, 1256 void MojoGLES2Impl::TexStorage2DEXT(GLenum target,
1255 GLsizei levels, 1257 GLsizei levels,
1256 GLenum internalFormat, 1258 GLenum internalFormat,
1257 GLsizei width, 1259 GLsizei width,
1258 GLsizei height) { 1260 GLsizei height) {
1259 NOTREACHED() << "Unimplemented TexStorage2DEXT."; 1261 MojoGLES2MakeCurrent(context_);
1262 glTexStorage2DEXT(target, levels, internalFormat, width, height);
1260 } 1263 }
1261 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) { 1264 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) {
1262 MojoGLES2MakeCurrent(context_); 1265 MojoGLES2MakeCurrent(context_);
1263 glGenQueriesEXT(n, queries); 1266 glGenQueriesEXT(n, queries);
1264 } 1267 }
1265 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) { 1268 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
1266 MojoGLES2MakeCurrent(context_); 1269 MojoGLES2MakeCurrent(context_);
1267 glDeleteQueriesEXT(n, queries); 1270 glDeleteQueriesEXT(n, queries);
1268 } 1271 }
1269 void MojoGLES2Impl::QueryCounterEXT(GLuint id, GLenum target) { 1272 void MojoGLES2Impl::QueryCounterEXT(GLuint id, GLenum target) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 GLenum pname, 1309 GLenum pname,
1307 GLint64* params) { 1310 GLint64* params) {
1308 NOTREACHED() << "Unimplemented GetQueryObjecti64vEXT."; 1311 NOTREACHED() << "Unimplemented GetQueryObjecti64vEXT.";
1309 } 1312 }
1310 void MojoGLES2Impl::GetQueryObjectui64vEXT(GLuint id, 1313 void MojoGLES2Impl::GetQueryObjectui64vEXT(GLuint id,
1311 GLenum pname, 1314 GLenum pname,
1312 GLuint64* params) { 1315 GLuint64* params) {
1313 NOTREACHED() << "Unimplemented GetQueryObjectui64vEXT."; 1316 NOTREACHED() << "Unimplemented GetQueryObjectui64vEXT.";
1314 } 1317 }
1315 void MojoGLES2Impl::SetDisjointValueSyncCHROMIUM() { 1318 void MojoGLES2Impl::SetDisjointValueSyncCHROMIUM() {
1316 NOTREACHED() << "Unimplemented SetDisjointValueSyncCHROMIUM."; 1319 MojoGLES2MakeCurrent(context_);
1320 glSetDisjointValueSyncCHROMIUM();
1317 } 1321 }
1318 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) { 1322 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
1319 NOTREACHED() << "Unimplemented InsertEventMarkerEXT."; 1323 MojoGLES2MakeCurrent(context_);
1324 glInsertEventMarkerEXT(length, marker);
1320 } 1325 }
1321 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) { 1326 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
1322 NOTREACHED() << "Unimplemented PushGroupMarkerEXT."; 1327 MojoGLES2MakeCurrent(context_);
1328 glPushGroupMarkerEXT(length, marker);
1323 } 1329 }
1324 void MojoGLES2Impl::PopGroupMarkerEXT() { 1330 void MojoGLES2Impl::PopGroupMarkerEXT() {
1325 NOTREACHED() << "Unimplemented PopGroupMarkerEXT."; 1331 MojoGLES2MakeCurrent(context_);
1332 glPopGroupMarkerEXT();
1326 } 1333 }
1327 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) { 1334 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1328 NOTREACHED() << "Unimplemented GenVertexArraysOES."; 1335 MojoGLES2MakeCurrent(context_);
1336 glGenVertexArraysOES(n, arrays);
1329 } 1337 }
1330 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) { 1338 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
1331 NOTREACHED() << "Unimplemented DeleteVertexArraysOES."; 1339 MojoGLES2MakeCurrent(context_);
1340 glDeleteVertexArraysOES(n, arrays);
1332 } 1341 }
1333 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) { 1342 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) {
1334 NOTREACHED() << "Unimplemented IsVertexArrayOES."; 1343 MojoGLES2MakeCurrent(context_);
1335 return 0; 1344 return glIsVertexArrayOES(array);
1336 } 1345 }
1337 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) { 1346 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) {
1338 NOTREACHED() << "Unimplemented BindVertexArrayOES."; 1347 MojoGLES2MakeCurrent(context_);
1348 glBindVertexArrayOES(array);
1339 } 1349 }
1340 void MojoGLES2Impl::SwapBuffers() { 1350 void MojoGLES2Impl::SwapBuffers() {
1341 NOTREACHED() << "Unimplemented SwapBuffers."; 1351 MojoGLES2MakeCurrent(context_);
1352 glSwapBuffers();
1342 } 1353 }
1343 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id, 1354 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1344 GLsizei count, 1355 GLsizei count,
1345 GLenum type, 1356 GLenum type,
1346 GLuint offset) { 1357 GLuint offset) {
1347 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; 1358 MojoGLES2MakeCurrent(context_);
1348 return 0; 1359 return glGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset);
1349 } 1360 }
1350 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { 1361 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) {
1351 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; 1362 MojoGLES2MakeCurrent(context_);
1352 return 0; 1363 return glEnableFeatureCHROMIUM(feature);
1353 } 1364 }
1354 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { 1365 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) {
1355 MojoGLES2MakeCurrent(context_); 1366 MojoGLES2MakeCurrent(context_);
1356 return glMapBufferCHROMIUM(target, access); 1367 return glMapBufferCHROMIUM(target, access);
1357 } 1368 }
1358 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { 1369 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) {
1359 MojoGLES2MakeCurrent(context_); 1370 MojoGLES2MakeCurrent(context_);
1360 return glUnmapBufferCHROMIUM(target); 1371 return glUnmapBufferCHROMIUM(target);
1361 } 1372 }
1362 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, 1373 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target,
1363 GLintptr offset, 1374 GLintptr offset,
1364 GLsizeiptr size, 1375 GLsizeiptr size,
1365 GLenum access) { 1376 GLenum access) {
1366 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; 1377 MojoGLES2MakeCurrent(context_);
1367 return 0; 1378 return glMapBufferSubDataCHROMIUM(target, offset, size, access);
1368 } 1379 }
1369 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { 1380 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) {
1370 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; 1381 MojoGLES2MakeCurrent(context_);
1382 glUnmapBufferSubDataCHROMIUM(mem);
1371 } 1383 }
1372 void* MojoGLES2Impl::MapBufferRange(GLenum target, 1384 void* MojoGLES2Impl::MapBufferRange(GLenum target,
1373 GLintptr offset, 1385 GLintptr offset,
1374 GLsizeiptr size, 1386 GLsizeiptr size,
1375 GLbitfield access) { 1387 GLbitfield access) {
1376 NOTREACHED() << "Unimplemented MapBufferRange."; 1388 NOTREACHED() << "Unimplemented MapBufferRange.";
1377 return 0; 1389 return 0;
1378 } 1390 }
1379 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) { 1391 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) {
1380 NOTREACHED() << "Unimplemented UnmapBuffer."; 1392 NOTREACHED() << "Unimplemented UnmapBuffer.";
(...skipping 12 matching lines...) Expand all
1393 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, 1405 return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1394 height, format, type, access); 1406 height, format, type, access);
1395 } 1407 }
1396 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) { 1408 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1397 MojoGLES2MakeCurrent(context_); 1409 MojoGLES2MakeCurrent(context_);
1398 glUnmapTexSubImage2DCHROMIUM(mem); 1410 glUnmapTexSubImage2DCHROMIUM(mem);
1399 } 1411 }
1400 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width, 1412 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width,
1401 GLuint height, 1413 GLuint height,
1402 GLfloat scale_factor) { 1414 GLfloat scale_factor) {
1403 NOTREACHED() << "Unimplemented ResizeCHROMIUM."; 1415 MojoGLES2MakeCurrent(context_);
1416 glResizeCHROMIUM(width, height, scale_factor);
1404 } 1417 }
1405 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() { 1418 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
1406 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM."; 1419 MojoGLES2MakeCurrent(context_);
1407 return 0; 1420 return glGetRequestableExtensionsCHROMIUM();
1408 } 1421 }
1409 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) { 1422 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) {
1410 NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM."; 1423 MojoGLES2MakeCurrent(context_);
1424 glRequestExtensionCHROMIUM(extension);
1411 } 1425 }
1412 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() { 1426 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() {
1413 NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM."; 1427 MojoGLES2MakeCurrent(context_);
1428 glRateLimitOffscreenContextCHROMIUM();
1414 } 1429 }
1415 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program, 1430 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program,
1416 GLsizei bufsize, 1431 GLsizei bufsize,
1417 GLsizei* size, 1432 GLsizei* size,
1418 void* info) { 1433 void* info) {
1419 NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM."; 1434 MojoGLES2MakeCurrent(context_);
1435 glGetProgramInfoCHROMIUM(program, bufsize, size, info);
1420 } 1436 }
1421 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program, 1437 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program,
1422 GLsizei bufsize, 1438 GLsizei bufsize,
1423 GLsizei* size, 1439 GLsizei* size,
1424 void* info) { 1440 void* info) {
1425 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM."; 1441 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
1426 } 1442 }
1427 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program, 1443 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
1428 GLsizei bufsize, 1444 GLsizei bufsize,
1429 GLsizei* size, 1445 GLsizei* size,
1430 void* info) { 1446 void* info) {
1431 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM."; 1447 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
1432 } 1448 }
1433 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program, 1449 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program,
1434 GLsizei bufsize, 1450 GLsizei bufsize,
1435 GLsizei* size, 1451 GLsizei* size,
1436 void* info) { 1452 void* info) {
1437 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; 1453 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
1438 } 1454 }
1439 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { 1455 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) {
1440 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM."; 1456 MojoGLES2MakeCurrent(context_);
1441 return 0; 1457 return glCreateStreamTextureCHROMIUM(texture);
1442 } 1458 }
1443 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, 1459 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer,
1444 GLsizei width, 1460 GLsizei width,
1445 GLsizei height, 1461 GLsizei height,
1446 GLenum internalformat) { 1462 GLenum internalformat) {
1447 MojoGLES2MakeCurrent(context_); 1463 MojoGLES2MakeCurrent(context_);
1448 return glCreateImageCHROMIUM(buffer, width, height, internalformat); 1464 return glCreateImageCHROMIUM(buffer, width, height, internalformat);
1449 } 1465 }
1450 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { 1466 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) {
1451 MojoGLES2MakeCurrent(context_); 1467 MojoGLES2MakeCurrent(context_);
1452 glDestroyImageCHROMIUM(image_id); 1468 glDestroyImageCHROMIUM(image_id);
1453 } 1469 }
1454 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, 1470 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
1455 GLsizei height, 1471 GLsizei height,
1456 GLenum internalformat, 1472 GLenum internalformat,
1457 GLenum usage) { 1473 GLenum usage) {
1458 MojoGLES2MakeCurrent(context_); 1474 MojoGLES2MakeCurrent(context_);
1459 return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat, 1475 return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat,
1460 usage); 1476 usage);
1461 } 1477 }
1462 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, 1478 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader,
1463 GLsizei bufsize, 1479 GLsizei bufsize,
1464 GLsizei* length, 1480 GLsizei* length,
1465 char* source) { 1481 char* source) {
1466 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE."; 1482 MojoGLES2MakeCurrent(context_);
1483 glGetTranslatedShaderSourceANGLE(shader, bufsize, length, source);
1467 } 1484 }
1468 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, 1485 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x,
1469 GLint y, 1486 GLint y,
1470 GLint width, 1487 GLint width,
1471 GLint height) { 1488 GLint height) {
1472 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM."; 1489 MojoGLES2MakeCurrent(context_);
1490 glPostSubBufferCHROMIUM(x, y, width, height);
1473 } 1491 }
1474 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, 1492 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target,
1475 GLsizei width, 1493 GLsizei width,
1476 GLsizei height, 1494 GLsizei height,
1477 GLuint ioSurfaceId, 1495 GLuint ioSurfaceId,
1478 GLuint plane) { 1496 GLuint plane) {
1479 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM."; 1497 MojoGLES2MakeCurrent(context_);
1498 glTexImageIOSurface2DCHROMIUM(target, width, height, ioSurfaceId, plane);
1480 } 1499 }
1481 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, 1500 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target,
1482 GLenum source_id, 1501 GLenum source_id,
1483 GLenum dest_id, 1502 GLenum dest_id,
1484 GLint internalformat, 1503 GLint internalformat,
1485 GLenum dest_type, 1504 GLenum dest_type,
1486 GLboolean unpack_flip_y, 1505 GLboolean unpack_flip_y,
1487 GLboolean unpack_premultiply_alpha, 1506 GLboolean unpack_premultiply_alpha,
1488 GLboolean unpack_unmultiply_alpha) { 1507 GLboolean unpack_unmultiply_alpha) {
1489 MojoGLES2MakeCurrent(context_); 1508 MojoGLES2MakeCurrent(context_);
(...skipping 14 matching lines...) Expand all
1504 GLboolean unpack_premultiply_alpha, 1523 GLboolean unpack_premultiply_alpha,
1505 GLboolean unpack_unmultiply_alpha) { 1524 GLboolean unpack_unmultiply_alpha) {
1506 MojoGLES2MakeCurrent(context_); 1525 MojoGLES2MakeCurrent(context_);
1507 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, 1526 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y,
1508 width, height, unpack_flip_y, 1527 width, height, unpack_flip_y,
1509 unpack_premultiply_alpha, unpack_unmultiply_alpha); 1528 unpack_premultiply_alpha, unpack_unmultiply_alpha);
1510 } 1529 }
1511 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target, 1530 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target,
1512 GLenum source_id, 1531 GLenum source_id,
1513 GLenum dest_id) { 1532 GLenum dest_id) {
1514 NOTREACHED() << "Unimplemented CompressedCopyTextureCHROMIUM."; 1533 MojoGLES2MakeCurrent(context_);
1534 glCompressedCopyTextureCHROMIUM(target, source_id, dest_id);
1515 } 1535 }
1516 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target, 1536 void MojoGLES2Impl::CompressedCopySubTextureCHROMIUM(GLenum target,
1517 GLenum source_id, 1537 GLenum source_id,
1518 GLenum dest_id, 1538 GLenum dest_id,
1519 GLint xoffset, 1539 GLint xoffset,
1520 GLint yoffset, 1540 GLint yoffset,
1521 GLint x, 1541 GLint x,
1522 GLint y, 1542 GLint y,
1523 GLsizei width, 1543 GLsizei width,
1524 GLsizei height) { 1544 GLsizei height) {
1525 NOTREACHED() << "Unimplemented CompressedCopySubTextureCHROMIUM."; 1545 MojoGLES2MakeCurrent(context_);
1546 glCompressedCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset,
1547 yoffset, x, y, width, height);
1526 } 1548 }
1527 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, 1549 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode,
1528 GLint first, 1550 GLint first,
1529 GLsizei count, 1551 GLsizei count,
1530 GLsizei primcount) { 1552 GLsizei primcount) {
1531 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE."; 1553 MojoGLES2MakeCurrent(context_);
1554 glDrawArraysInstancedANGLE(mode, first, count, primcount);
1532 } 1555 }
1533 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, 1556 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode,
1534 GLsizei count, 1557 GLsizei count,
1535 GLenum type, 1558 GLenum type,
1536 const void* indices, 1559 const void* indices,
1537 GLsizei primcount) { 1560 GLsizei primcount) {
1538 NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE."; 1561 MojoGLES2MakeCurrent(context_);
1562 glDrawElementsInstancedANGLE(mode, count, type, indices, primcount);
1539 } 1563 }
1540 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { 1564 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1541 NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE."; 1565 MojoGLES2MakeCurrent(context_);
1566 glVertexAttribDivisorANGLE(index, divisor);
1542 } 1567 }
1543 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) { 1568 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) {
1544 MojoGLES2MakeCurrent(context_); 1569 MojoGLES2MakeCurrent(context_);
1545 glGenMailboxCHROMIUM(mailbox); 1570 glGenMailboxCHROMIUM(mailbox);
1546 } 1571 }
1547 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target, 1572 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target,
1548 const GLbyte* mailbox) { 1573 const GLbyte* mailbox) {
1549 MojoGLES2MakeCurrent(context_); 1574 MojoGLES2MakeCurrent(context_);
1550 glProduceTextureCHROMIUM(target, mailbox); 1575 glProduceTextureCHROMIUM(target, mailbox);
1551 } 1576 }
1552 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture, 1577 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture,
1553 GLenum target, 1578 GLenum target,
1554 const GLbyte* mailbox) { 1579 const GLbyte* mailbox) {
1555 MojoGLES2MakeCurrent(context_); 1580 MojoGLES2MakeCurrent(context_);
1556 glProduceTextureDirectCHROMIUM(texture, target, mailbox); 1581 glProduceTextureDirectCHROMIUM(texture, target, mailbox);
1557 } 1582 }
1558 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target, 1583 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target,
1559 const GLbyte* mailbox) { 1584 const GLbyte* mailbox) {
1560 MojoGLES2MakeCurrent(context_); 1585 MojoGLES2MakeCurrent(context_);
1561 glConsumeTextureCHROMIUM(target, mailbox); 1586 glConsumeTextureCHROMIUM(target, mailbox);
1562 } 1587 }
1563 GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target, 1588 GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target,
1564 const GLbyte* mailbox) { 1589 const GLbyte* mailbox) {
1565 MojoGLES2MakeCurrent(context_); 1590 MojoGLES2MakeCurrent(context_);
1566 return glCreateAndConsumeTextureCHROMIUM(target, mailbox); 1591 return glCreateAndConsumeTextureCHROMIUM(target, mailbox);
1567 } 1592 }
1568 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program, 1593 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program,
1569 GLint location, 1594 GLint location,
1570 const char* name) { 1595 const char* name) {
1571 NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM."; 1596 MojoGLES2MakeCurrent(context_);
1597 glBindUniformLocationCHROMIUM(program, location, name);
1572 } 1598 }
1573 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) { 1599 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
1574 NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM."; 1600 MojoGLES2MakeCurrent(context_);
1601 glGenValuebuffersCHROMIUM(n, buffers);
1575 } 1602 }
1576 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n, 1603 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n,
1577 const GLuint* valuebuffers) { 1604 const GLuint* valuebuffers) {
1578 NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM."; 1605 MojoGLES2MakeCurrent(context_);
1606 glDeleteValuebuffersCHROMIUM(n, valuebuffers);
1579 } 1607 }
1580 GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) { 1608 GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) {
1581 NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM."; 1609 MojoGLES2MakeCurrent(context_);
1582 return 0; 1610 return glIsValuebufferCHROMIUM(valuebuffer);
1583 } 1611 }
1584 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) { 1612 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
1585 NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM."; 1613 MojoGLES2MakeCurrent(context_);
1614 glBindValuebufferCHROMIUM(target, valuebuffer);
1586 } 1615 }
1587 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) { 1616 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
1588 NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM."; 1617 MojoGLES2MakeCurrent(context_);
1618 glSubscribeValueCHROMIUM(target, subscription);
1589 } 1619 }
1590 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { 1620 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) {
1591 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM."; 1621 MojoGLES2MakeCurrent(context_);
1622 glPopulateSubscribedValuesCHROMIUM(target);
1592 } 1623 }
1593 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, 1624 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location,
1594 GLenum target, 1625 GLenum target,
1595 GLenum subscription) { 1626 GLenum subscription) {
1596 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; 1627 MojoGLES2MakeCurrent(context_);
1628 glUniformValuebufferCHROMIUM(location, target, subscription);
1597 } 1629 }
1598 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { 1630 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1599 MojoGLES2MakeCurrent(context_); 1631 MojoGLES2MakeCurrent(context_);
1600 glBindTexImage2DCHROMIUM(target, imageId); 1632 glBindTexImage2DCHROMIUM(target, imageId);
1601 } 1633 }
1602 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { 1634 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1603 MojoGLES2MakeCurrent(context_); 1635 MojoGLES2MakeCurrent(context_);
1604 glReleaseTexImage2DCHROMIUM(target, imageId); 1636 glReleaseTexImage2DCHROMIUM(target, imageId);
1605 } 1637 }
1606 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, 1638 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name,
1607 const char* trace_name) { 1639 const char* trace_name) {
1608 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM."; 1640 MojoGLES2MakeCurrent(context_);
1641 glTraceBeginCHROMIUM(category_name, trace_name);
1609 } 1642 }
1610 void MojoGLES2Impl::TraceEndCHROMIUM() { 1643 void MojoGLES2Impl::TraceEndCHROMIUM() {
1611 NOTREACHED() << "Unimplemented TraceEndCHROMIUM."; 1644 MojoGLES2MakeCurrent(context_);
1645 glTraceEndCHROMIUM();
1612 } 1646 }
1613 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, 1647 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target,
1614 GLsizei count, 1648 GLsizei count,
1615 const GLenum* attachments) { 1649 const GLenum* attachments) {
1616 NOTREACHED() << "Unimplemented DiscardFramebufferEXT."; 1650 NOTREACHED() << "Unimplemented DiscardFramebufferEXT.";
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 NOTREACHED() << "Unimplemented ApplyScreenSpaceAntialiasingCHROMIUM.";
1731 } 1788 }
1732 1789
1733 } // namespace mojo 1790 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698