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