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 |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 void** pointer) { | 570 void** pointer) { |
571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv"); | 571 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::GetVertexAttribPointerv"); |
572 gl_->GetVertexAttribPointerv(index, pname, pointer); | 572 gl_->GetVertexAttribPointerv(index, pname, pointer); |
573 } | 573 } |
574 | 574 |
575 void GLES2TraceImplementation::Hint(GLenum target, GLenum mode) { | 575 void GLES2TraceImplementation::Hint(GLenum target, GLenum mode) { |
576 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint"); | 576 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::Hint"); |
577 gl_->Hint(target, mode); | 577 gl_->Hint(target, mode); |
578 } | 578 } |
579 | 579 |
| 580 void GLES2TraceImplementation::InvalidateFramebuffer( |
| 581 GLenum target, |
| 582 GLsizei count, |
| 583 const GLenum* attachments) { |
| 584 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateFramebuffer"); |
| 585 gl_->InvalidateFramebuffer(target, count, attachments); |
| 586 } |
| 587 |
| 588 void GLES2TraceImplementation::InvalidateSubFramebuffer( |
| 589 GLenum target, |
| 590 GLsizei count, |
| 591 const GLenum* attachments, |
| 592 GLint x, |
| 593 GLint y, |
| 594 GLsizei width, |
| 595 GLsizei height) { |
| 596 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::InvalidateSubFramebuffer"); |
| 597 gl_->InvalidateSubFramebuffer(target, count, attachments, x, y, width, |
| 598 height); |
| 599 } |
| 600 |
580 GLboolean GLES2TraceImplementation::IsBuffer(GLuint buffer) { | 601 GLboolean GLES2TraceImplementation::IsBuffer(GLuint buffer) { |
581 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer"); | 602 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsBuffer"); |
582 return gl_->IsBuffer(buffer); | 603 return gl_->IsBuffer(buffer); |
583 } | 604 } |
584 | 605 |
585 GLboolean GLES2TraceImplementation::IsEnabled(GLenum cap) { | 606 GLboolean GLES2TraceImplementation::IsEnabled(GLenum cap) { |
586 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled"); | 607 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::IsEnabled"); |
587 return gl_->IsEnabled(cap); | 608 return gl_->IsEnabled(cap); |
588 } | 609 } |
589 | 610 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 void GLES2TraceImplementation::PixelStorei(GLenum pname, GLint param) { | 646 void GLES2TraceImplementation::PixelStorei(GLenum pname, GLint param) { |
626 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei"); | 647 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PixelStorei"); |
627 gl_->PixelStorei(pname, param); | 648 gl_->PixelStorei(pname, param); |
628 } | 649 } |
629 | 650 |
630 void GLES2TraceImplementation::PolygonOffset(GLfloat factor, GLfloat units) { | 651 void GLES2TraceImplementation::PolygonOffset(GLfloat factor, GLfloat units) { |
631 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset"); | 652 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::PolygonOffset"); |
632 gl_->PolygonOffset(factor, units); | 653 gl_->PolygonOffset(factor, units); |
633 } | 654 } |
634 | 655 |
| 656 void GLES2TraceImplementation::ReadBuffer(GLenum src) { |
| 657 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadBuffer"); |
| 658 gl_->ReadBuffer(src); |
| 659 } |
| 660 |
635 void GLES2TraceImplementation::ReadPixels(GLint x, | 661 void GLES2TraceImplementation::ReadPixels(GLint x, |
636 GLint y, | 662 GLint y, |
637 GLsizei width, | 663 GLsizei width, |
638 GLsizei height, | 664 GLsizei height, |
639 GLenum format, | 665 GLenum format, |
640 GLenum type, | 666 GLenum type, |
641 void* pixels) { | 667 void* pixels) { |
642 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels"); | 668 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::ReadPixels"); |
643 gl_->ReadPixels(x, y, width, height, format, type, pixels); | 669 gl_->ReadPixels(x, y, width, height, format, type, pixels); |
644 } | 670 } |
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 "GLES2Trace::MatrixLoadIdentityCHROMIUM"); | 1728 "GLES2Trace::MatrixLoadIdentityCHROMIUM"); |
1703 gl_->MatrixLoadIdentityCHROMIUM(matrixMode); | 1729 gl_->MatrixLoadIdentityCHROMIUM(matrixMode); |
1704 } | 1730 } |
1705 | 1731 |
1706 void GLES2TraceImplementation::BlendBarrierKHR() { | 1732 void GLES2TraceImplementation::BlendBarrierKHR() { |
1707 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR"); | 1733 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "GLES2Trace::BlendBarrierKHR"); |
1708 gl_->BlendBarrierKHR(); | 1734 gl_->BlendBarrierKHR(); |
1709 } | 1735 } |
1710 | 1736 |
1711 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ | 1737 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_TRACE_IMPLEMENTATION_IMPL_AUTOGEN_H_ |
OLD | NEW |