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

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

Issue 12545014: Implement EXT_draw_buffers WebGL extention support in command buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 // This file is included by gles2_implementation.cc to define the 9 // This file is included by gles2_implementation.cc to define the
10 // GL api functions. 10 // GL api functions.
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
1696 CheckGLError(); 1696 CheckGLError();
1697 } 1697 }
1698 1698
1699 void GLES2Implementation::WaitSyncPointCHROMIUM(GLuint sync_point) { 1699 void GLES2Implementation::WaitSyncPointCHROMIUM(GLuint sync_point) {
1700 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1700 GPU_CLIENT_SINGLE_THREAD_CHECK();
1701 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitSyncPointCHROMIUM(" << sync_p oint << ")"); // NOLINT 1701 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitSyncPointCHROMIUM(" << sync_p oint << ")"); // NOLINT
1702 helper_->WaitSyncPointCHROMIUM(sync_point); 1702 helper_->WaitSyncPointCHROMIUM(sync_point);
1703 CheckGLError(); 1703 CheckGLError();
1704 } 1704 }
1705 1705
1706 void GLES2Implementation::DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
1707 GPU_CLIENT_SINGLE_THREAD_CHECK();
1708 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDrawBuffersEXT(" << count << ", " << static_cast<const void*>(bufs) << ")"); // NOLINT
1709 GPU_CLIENT_LOG_CODE_BLOCK({
1710 for (GLsizei i = 0; i < count; ++i) {
1711 GPU_CLIENT_LOG(" " << i << ": " << bufs[0 + i * 1]);
1712 }
1713 });
1714 if (count < 0) {
1715 SetGLError(GL_INVALID_VALUE, "glDrawBuffersEXT", "count < 0");
1716 return;
1717 }
1718 helper_->DrawBuffersEXTImmediate(count, bufs);
1719 CheckGLError();
1720 }
1721
1706 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 1722 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
1707 1723
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698