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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_impl_autogen.h

Issue 1559203003: Add GLStreamTextureImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getCustomMatrix Created 4 years, 10 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
(...skipping 2615 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 } 2626 }
2627 }); 2627 });
2628 if (count < 0) { 2628 if (count < 0) {
2629 SetGLError(GL_INVALID_VALUE, "glUniformMatrix4x3fv", "count < 0"); 2629 SetGLError(GL_INVALID_VALUE, "glUniformMatrix4x3fv", "count < 0");
2630 return; 2630 return;
2631 } 2631 }
2632 helper_->UniformMatrix4x3fvImmediate(location, count, transpose, value); 2632 helper_->UniformMatrix4x3fvImmediate(location, count, transpose, value);
2633 CheckGLError(); 2633 CheckGLError();
2634 } 2634 }
2635 2635
2636 void GLES2Implementation::UniformMatrix4fvWithCustomMatrixCHROMIUM(
2637 GLint location,
2638 GLsizei count,
2639 GLint custom_matrix_id,
2640 GLboolean transpose,
2641 const GLfloat* default_value) {
2642 GPU_CLIENT_SINGLE_THREAD_CHECK();
2643 GPU_CLIENT_LOG("[" << GetLogPrefix()
2644 << "] glUniformMatrix4fvWithCustomMatrixCHROMIUM("
2645 << location << ", " << count << ", " << custom_matrix_id
2646 << ", " << GLES2Util::GetStringBool(transpose) << ", "
2647 << static_cast<const void*>(default_value) << ")");
2648 GPU_CLIENT_LOG_CODE_BLOCK({
2649 for (GLsizei i = 0; i < count; ++i) {
2650 GPU_CLIENT_LOG(
2651 " " << i << ": " << default_value[0 + i * 16] << ", "
2652 << default_value[1 + i * 16] << ", " << default_value[2 + i * 16]
2653 << ", " << default_value[3 + i * 16] << ", "
2654 << default_value[4 + i * 16] << ", " << default_value[5 + i * 16]
2655 << ", " << default_value[6 + i * 16] << ", "
2656 << default_value[7 + i * 16] << ", " << default_value[8 + i * 16]
2657 << ", " << default_value[9 + i * 16] << ", "
2658 << default_value[10 + i * 16] << ", "
2659 << default_value[11 + i * 16] << ", "
2660 << default_value[12 + i * 16] << ", "
2661 << default_value[13 + i * 16] << ", "
2662 << default_value[14 + i * 16] << ", "
2663 << default_value[15 + i * 16]);
2664 }
2665 });
2666 if (count < 0) {
2667 SetGLError(GL_INVALID_VALUE, "glUniformMatrix4fvWithCustomMatrixCHROMIUM",
2668 "count < 0");
2669 return;
2670 }
2671 helper_->UniformMatrix4fvWithCustomMatrixCHROMIUMImmediate(
2672 location, count, custom_matrix_id, transpose, default_value);
2673 CheckGLError();
2674 }
2675
2636 void GLES2Implementation::UseProgram(GLuint program) { 2676 void GLES2Implementation::UseProgram(GLuint program) {
2637 GPU_CLIENT_SINGLE_THREAD_CHECK(); 2677 GPU_CLIENT_SINGLE_THREAD_CHECK();
2638 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glUseProgram(" << program << ")"); 2678 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glUseProgram(" << program << ")");
2639 if (IsProgramReservedId(program)) { 2679 if (IsProgramReservedId(program)) {
2640 SetGLError(GL_INVALID_OPERATION, "UseProgram", "program reserved id"); 2680 SetGLError(GL_INVALID_OPERATION, "UseProgram", "program reserved id");
2641 return; 2681 return;
2642 } 2682 }
2643 UseProgramHelper(program); 2683 UseProgramHelper(program);
2644 CheckGLError(); 2684 CheckGLError();
2645 } 2685 }
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
3570 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() { 3610 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() {
3571 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3611 GPU_CLIENT_SINGLE_THREAD_CHECK();
3572 GPU_CLIENT_LOG("[" << GetLogPrefix() 3612 GPU_CLIENT_LOG("[" << GetLogPrefix()
3573 << "] glApplyScreenSpaceAntialiasingCHROMIUM(" 3613 << "] glApplyScreenSpaceAntialiasingCHROMIUM("
3574 << ")"); 3614 << ")");
3575 helper_->ApplyScreenSpaceAntialiasingCHROMIUM(); 3615 helper_->ApplyScreenSpaceAntialiasingCHROMIUM();
3576 CheckGLError(); 3616 CheckGLError();
3577 } 3617 }
3578 3618
3579 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3619 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698