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" |
| 15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_image.h" |
14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h" | 16 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h" |
15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" | 17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" |
16 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" | 18 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h" |
17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h" | 19 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h" |
18 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" | 20 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h" |
19 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h" | 21 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h" |
20 | 22 |
21 namespace mojo { | 23 namespace mojo { |
22 | 24 |
23 void MojoGLES2Impl::ActiveTexture(GLenum texture) { | 25 void MojoGLES2Impl::ActiveTexture(GLenum texture) { |
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 GLenum type, | 1312 GLenum type, |
1311 GLuint offset) { | 1313 GLuint offset) { |
1312 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; | 1314 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; |
1313 return 0; | 1315 return 0; |
1314 } | 1316 } |
1315 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { | 1317 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { |
1316 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; | 1318 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; |
1317 return 0; | 1319 return 0; |
1318 } | 1320 } |
1319 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { | 1321 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { |
1320 NOTREACHED() << "Unimplemented MapBufferCHROMIUM."; | 1322 MojoGLES2MakeCurrent(context_); |
1321 return 0; | 1323 return glMapBufferCHROMIUM(target, access); |
1322 } | 1324 } |
1323 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { | 1325 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { |
1324 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM."; | 1326 MojoGLES2MakeCurrent(context_); |
1325 return 0; | 1327 return glUnmapBufferCHROMIUM(target); |
1326 } | 1328 } |
1327 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, | 1329 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, |
1328 GLintptr offset, | 1330 GLintptr offset, |
1329 GLsizeiptr size, | 1331 GLsizeiptr size, |
1330 GLenum access) { | 1332 GLenum access) { |
1331 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; | 1333 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; |
1332 return 0; | 1334 return 0; |
1333 } | 1335 } |
1334 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { | 1336 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { |
1335 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; | 1337 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; | 1404 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; |
1403 } | 1405 } |
1404 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { | 1406 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { |
1405 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM."; | 1407 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM."; |
1406 return 0; | 1408 return 0; |
1407 } | 1409 } |
1408 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, | 1410 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, |
1409 GLsizei width, | 1411 GLsizei width, |
1410 GLsizei height, | 1412 GLsizei height, |
1411 GLenum internalformat) { | 1413 GLenum internalformat) { |
1412 NOTREACHED() << "Unimplemented CreateImageCHROMIUM."; | 1414 MojoGLES2MakeCurrent(context_); |
1413 return 0; | 1415 return glCreateImageCHROMIUM(buffer, width, height, internalformat); |
1414 } | 1416 } |
1415 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { | 1417 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { |
1416 NOTREACHED() << "Unimplemented DestroyImageCHROMIUM."; | 1418 MojoGLES2MakeCurrent(context_); |
| 1419 glDestroyImageCHROMIUM(image_id); |
1417 } | 1420 } |
1418 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, | 1421 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, |
1419 GLsizei height, | 1422 GLsizei height, |
1420 GLenum internalformat, | 1423 GLenum internalformat, |
1421 GLenum usage) { | 1424 GLenum usage) { |
1422 NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM."; | 1425 MojoGLES2MakeCurrent(context_); |
1423 return 0; | 1426 return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat, |
| 1427 usage); |
1424 } | 1428 } |
1425 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, | 1429 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, |
1426 GLsizei bufsize, | 1430 GLsizei bufsize, |
1427 GLsizei* length, | 1431 GLsizei* length, |
1428 char* source) { | 1432 char* source) { |
1429 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE."; | 1433 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE."; |
1430 } | 1434 } |
1431 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, | 1435 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, |
1432 GLint y, | 1436 GLint y, |
1433 GLint width, | 1437 GLint width, |
1434 GLint height) { | 1438 GLint height) { |
1435 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM."; | 1439 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM."; |
1436 } | 1440 } |
1437 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, | 1441 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, |
1438 GLsizei width, | 1442 GLsizei width, |
1439 GLsizei height, | 1443 GLsizei height, |
1440 GLuint ioSurfaceId, | 1444 GLuint ioSurfaceId, |
1441 GLuint plane) { | 1445 GLuint plane) { |
1442 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM."; | 1446 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM."; |
1443 } | 1447 } |
1444 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, | 1448 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, |
1445 GLenum source_id, | 1449 GLenum source_id, |
1446 GLenum dest_id, | 1450 GLenum dest_id, |
1447 GLint internalformat, | 1451 GLint internalformat, |
1448 GLenum dest_type) { | 1452 GLenum dest_type) { |
1449 NOTREACHED() << "Unimplemented CopyTextureCHROMIUM."; | 1453 MojoGLES2MakeCurrent(context_); |
| 1454 glCopyTextureCHROMIUM(target, source_id, dest_id, internalformat, dest_type); |
1450 } | 1455 } |
1451 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, | 1456 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, |
1452 GLenum source_id, | 1457 GLenum source_id, |
1453 GLenum dest_id, | 1458 GLenum dest_id, |
1454 GLint xoffset, | 1459 GLint xoffset, |
1455 GLint yoffset, | 1460 GLint yoffset, |
1456 GLint x, | 1461 GLint x, |
1457 GLint y, | 1462 GLint y, |
1458 GLsizei width, | 1463 GLsizei width, |
1459 GLsizei height) { | 1464 GLsizei height) { |
1460 NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM."; | 1465 MojoGLES2MakeCurrent(context_); |
| 1466 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, |
| 1467 width, height); |
1461 } | 1468 } |
1462 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, | 1469 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, |
1463 GLint first, | 1470 GLint first, |
1464 GLsizei count, | 1471 GLsizei count, |
1465 GLsizei primcount) { | 1472 GLsizei primcount) { |
1466 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE."; | 1473 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE."; |
1467 } | 1474 } |
1468 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, | 1475 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, |
1469 GLsizei count, | 1476 GLsizei count, |
1470 GLenum type, | 1477 GLenum type, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 } | 1531 } |
1525 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { | 1532 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { |
1526 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM."; | 1533 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM."; |
1527 } | 1534 } |
1528 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, | 1535 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, |
1529 GLenum target, | 1536 GLenum target, |
1530 GLenum subscription) { | 1537 GLenum subscription) { |
1531 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; | 1538 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; |
1532 } | 1539 } |
1533 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1540 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1534 NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM."; | 1541 MojoGLES2MakeCurrent(context_); |
| 1542 glBindTexImage2DCHROMIUM(target, imageId); |
1535 } | 1543 } |
1536 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1544 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1537 NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM."; | 1545 MojoGLES2MakeCurrent(context_); |
| 1546 glReleaseTexImage2DCHROMIUM(target, imageId); |
1538 } | 1547 } |
1539 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, | 1548 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, |
1540 const char* trace_name) { | 1549 const char* trace_name) { |
1541 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM."; | 1550 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM."; |
1542 } | 1551 } |
1543 void MojoGLES2Impl::TraceEndCHROMIUM() { | 1552 void MojoGLES2Impl::TraceEndCHROMIUM() { |
1544 NOTREACHED() << "Unimplemented TraceEndCHROMIUM."; | 1553 NOTREACHED() << "Unimplemented TraceEndCHROMIUM."; |
1545 } | 1554 } |
1546 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target, | 1555 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target, |
1547 GLint level, | 1556 GLint level, |
1548 GLint xoffset, | 1557 GLint xoffset, |
1549 GLint yoffset, | 1558 GLint yoffset, |
1550 GLsizei width, | 1559 GLsizei width, |
1551 GLsizei height, | 1560 GLsizei height, |
1552 GLenum format, | 1561 GLenum format, |
1553 GLenum type, | 1562 GLenum type, |
1554 const void* data) { | 1563 const void* data) { |
1555 NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM."; | 1564 MojoGLES2MakeCurrent(context_); |
| 1565 glAsyncTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height, |
| 1566 format, type, data); |
1556 } | 1567 } |
1557 void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target, | 1568 void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target, |
1558 GLint level, | 1569 GLint level, |
1559 GLenum internalformat, | 1570 GLenum internalformat, |
1560 GLsizei width, | 1571 GLsizei width, |
1561 GLsizei height, | 1572 GLsizei height, |
1562 GLint border, | 1573 GLint border, |
1563 GLenum format, | 1574 GLenum format, |
1564 GLenum type, | 1575 GLenum type, |
1565 const void* pixels) { | 1576 const void* pixels) { |
1566 NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM."; | 1577 MojoGLES2MakeCurrent(context_); |
| 1578 glAsyncTexImage2DCHROMIUM(target, level, internalformat, width, height, |
| 1579 border, format, type, pixels); |
1567 } | 1580 } |
1568 void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target) { | 1581 void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target) { |
1569 NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM."; | 1582 MojoGLES2MakeCurrent(context_); |
| 1583 glWaitAsyncTexImage2DCHROMIUM(target); |
1570 } | 1584 } |
1571 void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() { | 1585 void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() { |
1572 NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM."; | 1586 MojoGLES2MakeCurrent(context_); |
| 1587 glWaitAllAsyncTexImage2DCHROMIUM(); |
1573 } | 1588 } |
1574 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, | 1589 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target, |
1575 GLsizei count, | 1590 GLsizei count, |
1576 const GLenum* attachments) { | 1591 const GLenum* attachments) { |
1577 NOTREACHED() << "Unimplemented DiscardFramebufferEXT."; | 1592 NOTREACHED() << "Unimplemented DiscardFramebufferEXT."; |
1578 } | 1593 } |
1579 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) { | 1594 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) { |
1580 NOTREACHED() << "Unimplemented LoseContextCHROMIUM."; | 1595 NOTREACHED() << "Unimplemented LoseContextCHROMIUM."; |
1581 } | 1596 } |
1582 GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() { | 1597 GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 } | 1632 } |
1618 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { | 1633 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { |
1619 NOTREACHED() << "Unimplemented GetGraphicsResetStatusKHR."; | 1634 NOTREACHED() << "Unimplemented GetGraphicsResetStatusKHR."; |
1620 return 0; | 1635 return 0; |
1621 } | 1636 } |
1622 void MojoGLES2Impl::BlendBarrierKHR() { | 1637 void MojoGLES2Impl::BlendBarrierKHR() { |
1623 NOTREACHED() << "Unimplemented BlendBarrierKHR."; | 1638 NOTREACHED() << "Unimplemented BlendBarrierKHR."; |
1624 } | 1639 } |
1625 | 1640 |
1626 } // namespace mojo | 1641 } // namespace mojo |
OLD | NEW |