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" |
| 17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_pixel_transfer_buffe
r_object.h" |
15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h" | 18 #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" | 19 #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" | 20 #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" | 21 #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" | 22 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h" |
20 | 23 |
21 namespace mojo { | 24 namespace mojo { |
22 | 25 |
23 void MojoGLES2Impl::ActiveTexture(GLenum texture) { | 26 void MojoGLES2Impl::ActiveTexture(GLenum texture) { |
24 MojoGLES2MakeCurrent(context_); | 27 MojoGLES2MakeCurrent(context_); |
(...skipping 1285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 GLenum type, | 1313 GLenum type, |
1311 GLuint offset) { | 1314 GLuint offset) { |
1312 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; | 1315 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM."; |
1313 return 0; | 1316 return 0; |
1314 } | 1317 } |
1315 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { | 1318 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) { |
1316 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; | 1319 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM."; |
1317 return 0; | 1320 return 0; |
1318 } | 1321 } |
1319 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { | 1322 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) { |
1320 NOTREACHED() << "Unimplemented MapBufferCHROMIUM."; | 1323 MojoGLES2MakeCurrent(context_); |
1321 return 0; | 1324 return glMapBufferCHROMIUM(target, access); |
1322 } | 1325 } |
1323 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { | 1326 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) { |
1324 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM."; | 1327 MojoGLES2MakeCurrent(context_); |
1325 return 0; | 1328 return glUnmapBufferCHROMIUM(target); |
1326 } | 1329 } |
1327 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, | 1330 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target, |
1328 GLintptr offset, | 1331 GLintptr offset, |
1329 GLsizeiptr size, | 1332 GLsizeiptr size, |
1330 GLenum access) { | 1333 GLenum access) { |
1331 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; | 1334 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM."; |
1332 return 0; | 1335 return 0; |
1333 } | 1336 } |
1334 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { | 1337 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) { |
1335 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; | 1338 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM."; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; | 1405 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM."; |
1403 } | 1406 } |
1404 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { | 1407 GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) { |
1405 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM."; | 1408 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM."; |
1406 return 0; | 1409 return 0; |
1407 } | 1410 } |
1408 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, | 1411 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer, |
1409 GLsizei width, | 1412 GLsizei width, |
1410 GLsizei height, | 1413 GLsizei height, |
1411 GLenum internalformat) { | 1414 GLenum internalformat) { |
1412 NOTREACHED() << "Unimplemented CreateImageCHROMIUM."; | 1415 MojoGLES2MakeCurrent(context_); |
1413 return 0; | 1416 return glCreateImageCHROMIUM(buffer, width, height, internalformat); |
1414 } | 1417 } |
1415 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { | 1418 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) { |
1416 NOTREACHED() << "Unimplemented DestroyImageCHROMIUM."; | 1419 MojoGLES2MakeCurrent(context_); |
| 1420 glDestroyImageCHROMIUM(image_id); |
1417 } | 1421 } |
1418 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, | 1422 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width, |
1419 GLsizei height, | 1423 GLsizei height, |
1420 GLenum internalformat, | 1424 GLenum internalformat, |
1421 GLenum usage) { | 1425 GLenum usage) { |
1422 NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM."; | 1426 MojoGLES2MakeCurrent(context_); |
1423 return 0; | 1427 return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat, |
| 1428 usage); |
1424 } | 1429 } |
1425 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, | 1430 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader, |
1426 GLsizei bufsize, | 1431 GLsizei bufsize, |
1427 GLsizei* length, | 1432 GLsizei* length, |
1428 char* source) { | 1433 char* source) { |
1429 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE."; | 1434 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE."; |
1430 } | 1435 } |
1431 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, | 1436 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x, |
1432 GLint y, | 1437 GLint y, |
1433 GLint width, | 1438 GLint width, |
1434 GLint height) { | 1439 GLint height) { |
1435 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM."; | 1440 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM."; |
1436 } | 1441 } |
1437 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, | 1442 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target, |
1438 GLsizei width, | 1443 GLsizei width, |
1439 GLsizei height, | 1444 GLsizei height, |
1440 GLuint ioSurfaceId, | 1445 GLuint ioSurfaceId, |
1441 GLuint plane) { | 1446 GLuint plane) { |
1442 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM."; | 1447 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM."; |
1443 } | 1448 } |
1444 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, | 1449 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target, |
1445 GLenum source_id, | 1450 GLenum source_id, |
1446 GLenum dest_id, | 1451 GLenum dest_id, |
1447 GLint internalformat, | 1452 GLint internalformat, |
1448 GLenum dest_type) { | 1453 GLenum dest_type) { |
1449 NOTREACHED() << "Unimplemented CopyTextureCHROMIUM."; | 1454 MojoGLES2MakeCurrent(context_); |
| 1455 glCopyTextureCHROMIUM(target, source_id, dest_id, internalformat, dest_type); |
1450 } | 1456 } |
1451 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, | 1457 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target, |
1452 GLenum source_id, | 1458 GLenum source_id, |
1453 GLenum dest_id, | 1459 GLenum dest_id, |
1454 GLint xoffset, | 1460 GLint xoffset, |
1455 GLint yoffset, | 1461 GLint yoffset, |
1456 GLint x, | 1462 GLint x, |
1457 GLint y, | 1463 GLint y, |
1458 GLsizei width, | 1464 GLsizei width, |
1459 GLsizei height) { | 1465 GLsizei height) { |
1460 NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM."; | 1466 MojoGLES2MakeCurrent(context_); |
| 1467 glCopySubTextureCHROMIUM(target, source_id, dest_id, xoffset, yoffset, x, y, |
| 1468 width, height); |
1461 } | 1469 } |
1462 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, | 1470 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode, |
1463 GLint first, | 1471 GLint first, |
1464 GLsizei count, | 1472 GLsizei count, |
1465 GLsizei primcount) { | 1473 GLsizei primcount) { |
1466 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE."; | 1474 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE."; |
1467 } | 1475 } |
1468 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, | 1476 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode, |
1469 GLsizei count, | 1477 GLsizei count, |
1470 GLenum type, | 1478 GLenum type, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 } | 1532 } |
1525 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { | 1533 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) { |
1526 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM."; | 1534 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM."; |
1527 } | 1535 } |
1528 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, | 1536 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location, |
1529 GLenum target, | 1537 GLenum target, |
1530 GLenum subscription) { | 1538 GLenum subscription) { |
1531 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; | 1539 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM."; |
1532 } | 1540 } |
1533 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1541 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1534 NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM."; | 1542 MojoGLES2MakeCurrent(context_); |
| 1543 glBindTexImage2DCHROMIUM(target, imageId); |
1535 } | 1544 } |
1536 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { | 1545 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { |
1537 NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM."; | 1546 MojoGLES2MakeCurrent(context_); |
| 1547 glReleaseTexImage2DCHROMIUM(target, imageId); |
1538 } | 1548 } |
1539 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, | 1549 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name, |
1540 const char* trace_name) { | 1550 const char* trace_name) { |
1541 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM."; | 1551 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM."; |
1542 } | 1552 } |
1543 void MojoGLES2Impl::TraceEndCHROMIUM() { | 1553 void MojoGLES2Impl::TraceEndCHROMIUM() { |
1544 NOTREACHED() << "Unimplemented TraceEndCHROMIUM."; | 1554 NOTREACHED() << "Unimplemented TraceEndCHROMIUM."; |
1545 } | 1555 } |
1546 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target, | 1556 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target, |
1547 GLint level, | 1557 GLint level, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1617 } | 1627 } |
1618 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { | 1628 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() { |
1619 NOTREACHED() << "Unimplemented GetGraphicsResetStatusKHR."; | 1629 NOTREACHED() << "Unimplemented GetGraphicsResetStatusKHR."; |
1620 return 0; | 1630 return 0; |
1621 } | 1631 } |
1622 void MojoGLES2Impl::BlendBarrierKHR() { | 1632 void MojoGLES2Impl::BlendBarrierKHR() { |
1623 NOTREACHED() << "Unimplemented BlendBarrierKHR."; | 1633 NOTREACHED() << "Unimplemented BlendBarrierKHR."; |
1624 } | 1634 } |
1625 | 1635 |
1626 } // namespace mojo | 1636 } // namespace mojo |
OLD | NEW |