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

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

Issue 165393003: gpu: Generate mailboxes on client side (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // 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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after
1671 void GLES2Implementation::CopyTextureCHROMIUM( 1671 void GLES2Implementation::CopyTextureCHROMIUM(
1672 GLenum target, GLenum source_id, GLenum dest_id, GLint level, 1672 GLenum target, GLenum source_id, GLenum dest_id, GLint level,
1673 GLint internalformat, GLenum dest_type) { 1673 GLint internalformat, GLenum dest_type) {
1674 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1674 GPU_CLIENT_SINGLE_THREAD_CHECK();
1675 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCopyTextureCHROMIUM(" << GLES2Uti l::GetStringEnum(target) << ", " << GLES2Util::GetStringEnum(source_id) << ", " << GLES2Util::GetStringEnum(dest_id) << ", " << level << ", " << internalformat << ", " << GLES2Util::GetStringPixelType(dest_type) << ")"); // NOLINT 1675 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glCopyTextureCHROMIUM(" << GLES2Uti l::GetStringEnum(target) << ", " << GLES2Util::GetStringEnum(source_id) << ", " << GLES2Util::GetStringEnum(dest_id) << ", " << level << ", " << internalformat << ", " << GLES2Util::GetStringPixelType(dest_type) << ")"); // NOLINT
1676 helper_->CopyTextureCHROMIUM( 1676 helper_->CopyTextureCHROMIUM(
1677 target, source_id, dest_id, level, internalformat, dest_type); 1677 target, source_id, dest_id, level, internalformat, dest_type);
1678 CheckGLError(); 1678 CheckGLError();
1679 } 1679 }
1680 1680
1681 void GLES2Implementation::ProduceTextureCHROMIUM(
1682 GLenum target, const GLbyte* mailbox) {
1683 GPU_CLIENT_SINGLE_THREAD_CHECK();
1684 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glProduceTextureCHROMIUM(" << GLES2 Util::GetStringTextureBindTarget(target) << ", " << static_cast<const void*>(mai lbox) << ")"); // NOLINT
1685 GPU_CLIENT_LOG("values: " << mailbox[0] << ", " << mailbox[1] << ", " << mailb ox[2] << ", " << mailbox[3] << ", " << mailbox[4] << ", " << mailbox[5] << ", " << mailbox[6] << ", " << mailbox[7] << ", " << mailbox[8] << ", " << mailbox[9] << ", " << mailbox[10] << ", " << mailbox[11] << ", " << mailbox[12] << ", " << mailbox[13] << ", " << mailbox[14] << ", " << mailbox[15] << ", " << mailbox[16] << ", " << mailbox[17] << ", " << mailbox[18] << ", " << mailbox[19] << ", " << mailbox[20] << ", " << mailbox[21] << ", " << mailbox[22] << ", " << mailbox[23 ] << ", " << mailbox[24] << ", " << mailbox[25] << ", " << mailbox[26] << ", " < < mailbox[27] << ", " << mailbox[28] << ", " << mailbox[29] << ", " << mailbox[3 0] << ", " << mailbox[31] << ", " << mailbox[32] << ", " << mailbox[33] << ", " << mailbox[34] << ", " << mailbox[35] << ", " << mailbox[36] << ", " << mailbox[ 37] << ", " << mailbox[38] << ", " << mailbox[39] << ", " << mailbox[40] << ", " << mailbox[41] << ", " << mailbox[42] << ", " << mailbox[43] << ", " << mailbox [44] << ", " << mailbox[45] << ", " << mailbox[46] << ", " << mailbox[47] << ", " << mailbox[48] << ", " << mailbox[49] << ", " << mailbox[50] << ", " << mailbo x[51] << ", " << mailbox[52] << ", " << mailbox[53] << ", " << mailbox[54] << ", " << mailbox[55] << ", " << mailbox[56] << ", " << mailbox[57] << ", " << mailb ox[58] << ", " << mailbox[59] << ", " << mailbox[60] << ", " << mailbox[61] << " , " << mailbox[62] << ", " << mailbox[63]); // NOLINT
1686 helper_->ProduceTextureCHROMIUMImmediate(target, mailbox);
1687 CheckGLError();
1688 }
1689
1690 void GLES2Implementation::ConsumeTextureCHROMIUM(
1691 GLenum target, const GLbyte* mailbox) {
1692 GPU_CLIENT_SINGLE_THREAD_CHECK();
1693 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glConsumeTextureCHROMIUM(" << GLES2 Util::GetStringTextureBindTarget(target) << ", " << static_cast<const void*>(mai lbox) << ")"); // NOLINT
1694 GPU_CLIENT_LOG("values: " << mailbox[0] << ", " << mailbox[1] << ", " << mailb ox[2] << ", " << mailbox[3] << ", " << mailbox[4] << ", " << mailbox[5] << ", " << mailbox[6] << ", " << mailbox[7] << ", " << mailbox[8] << ", " << mailbox[9] << ", " << mailbox[10] << ", " << mailbox[11] << ", " << mailbox[12] << ", " << mailbox[13] << ", " << mailbox[14] << ", " << mailbox[15] << ", " << mailbox[16] << ", " << mailbox[17] << ", " << mailbox[18] << ", " << mailbox[19] << ", " << mailbox[20] << ", " << mailbox[21] << ", " << mailbox[22] << ", " << mailbox[23 ] << ", " << mailbox[24] << ", " << mailbox[25] << ", " << mailbox[26] << ", " < < mailbox[27] << ", " << mailbox[28] << ", " << mailbox[29] << ", " << mailbox[3 0] << ", " << mailbox[31] << ", " << mailbox[32] << ", " << mailbox[33] << ", " << mailbox[34] << ", " << mailbox[35] << ", " << mailbox[36] << ", " << mailbox[ 37] << ", " << mailbox[38] << ", " << mailbox[39] << ", " << mailbox[40] << ", " << mailbox[41] << ", " << mailbox[42] << ", " << mailbox[43] << ", " << mailbox [44] << ", " << mailbox[45] << ", " << mailbox[46] << ", " << mailbox[47] << ", " << mailbox[48] << ", " << mailbox[49] << ", " << mailbox[50] << ", " << mailbo x[51] << ", " << mailbox[52] << ", " << mailbox[53] << ", " << mailbox[54] << ", " << mailbox[55] << ", " << mailbox[56] << ", " << mailbox[57] << ", " << mailb ox[58] << ", " << mailbox[59] << ", " << mailbox[60] << ", " << mailbox[61] << " , " << mailbox[62] << ", " << mailbox[63]); // NOLINT
1695 helper_->ConsumeTextureCHROMIUMImmediate(target, mailbox);
1696 CheckGLError();
1697 }
1698
1699 void GLES2Implementation::BindTexImage2DCHROMIUM( 1681 void GLES2Implementation::BindTexImage2DCHROMIUM(
1700 GLenum target, GLint imageId) { 1682 GLenum target, GLint imageId) {
1701 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1683 GPU_CLIENT_SINGLE_THREAD_CHECK();
1702 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindTexImage2DCHROMIUM(" << GLES2 Util::GetStringTextureBindTarget(target) << ", " << imageId << ")"); // NOLINT 1684 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glBindTexImage2DCHROMIUM(" << GLES2 Util::GetStringTextureBindTarget(target) << ", " << imageId << ")"); // NOLINT
1703 helper_->BindTexImage2DCHROMIUM(target, imageId); 1685 helper_->BindTexImage2DCHROMIUM(target, imageId);
1704 CheckGLError(); 1686 CheckGLError();
1705 } 1687 }
1706 1688
1707 void GLES2Implementation::ReleaseTexImage2DCHROMIUM( 1689 void GLES2Implementation::ReleaseTexImage2DCHROMIUM(
1708 GLenum target, GLint imageId) { 1690 GLenum target, GLint imageId) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 1743
1762 void GLES2Implementation::DiscardBackbufferCHROMIUM() { 1744 void GLES2Implementation::DiscardBackbufferCHROMIUM() {
1763 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1745 GPU_CLIENT_SINGLE_THREAD_CHECK();
1764 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDiscardBackbufferCHROMIUM(" << ") "); // NOLINT 1746 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glDiscardBackbufferCHROMIUM(" << ") "); // NOLINT
1765 helper_->DiscardBackbufferCHROMIUM(); 1747 helper_->DiscardBackbufferCHROMIUM();
1766 CheckGLError(); 1748 CheckGLError();
1767 } 1749 }
1768 1750
1769 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 1751 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_
1770 1752
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698