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

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

Issue 1949303003: Improve indexed gl state related GL commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tex
Patch Set: fix a DCHECK failure Created 4 years, 7 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 helper_->Clear(mask); 221 helper_->Clear(mask);
222 CheckGLError(); 222 CheckGLError();
223 } 223 }
224 224
225 void GLES2Implementation::ClearBufferfi(GLenum buffer, 225 void GLES2Implementation::ClearBufferfi(GLenum buffer,
226 GLint drawbuffers, 226 GLint drawbuffers,
227 GLfloat depth, 227 GLfloat depth,
228 GLint stencil) { 228 GLint stencil) {
229 GPU_CLIENT_SINGLE_THREAD_CHECK(); 229 GPU_CLIENT_SINGLE_THREAD_CHECK();
230 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearBufferfi(" 230 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearBufferfi("
231 << GLES2Util::GetStringBufferfv(buffer) << ", " 231 << GLES2Util::GetStringBufferfi(buffer) << ", "
232 << drawbuffers << ", " << depth << ", " << stencil << ")"); 232 << drawbuffers << ", " << depth << ", " << stencil << ")");
233 helper_->ClearBufferfi(buffer, drawbuffers, depth, stencil); 233 helper_->ClearBufferfi(buffer, drawbuffers, depth, stencil);
234 CheckGLError(); 234 CheckGLError();
235 } 235 }
236 236
237 void GLES2Implementation::ClearBufferfv(GLenum buffer, 237 void GLES2Implementation::ClearBufferfv(GLenum buffer,
238 GLint drawbuffers, 238 GLint drawbuffers,
239 const GLfloat* value) { 239 const GLfloat* value) {
240 GPU_CLIENT_SINGLE_THREAD_CHECK(); 240 GPU_CLIENT_SINGLE_THREAD_CHECK();
241 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearBufferfv(" 241 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glClearBufferfv("
(...skipping 3233 matching lines...) Expand 10 before | Expand all | Expand 10 after
3475 << ", " << static_cast<const void*>(default_value) << ")"); 3475 << ", " << static_cast<const void*>(default_value) << ")");
3476 size_t count = 16; 3476 size_t count = 16;
3477 for (size_t ii = 0; ii < count; ++ii) 3477 for (size_t ii = 0; ii < count; ++ii)
3478 GPU_CLIENT_LOG("value[" << ii << "]: " << default_value[ii]); 3478 GPU_CLIENT_LOG("value[" << ii << "]: " << default_value[ii]);
3479 helper_->UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate( 3479 helper_->UniformMatrix4fvStreamTextureMatrixCHROMIUMImmediate(
3480 location, transpose, default_value); 3480 location, transpose, default_value);
3481 CheckGLError(); 3481 CheckGLError();
3482 } 3482 }
3483 3483
3484 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3484 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/build_gles2_cmd_buffer.py ('k') | gpu/command_buffer/client/gles2_implementation_unittest_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698