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

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

Issue 1435183002: WebGL 2: fix the bug in invalidate-framebuffer.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 1 month 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 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 << GLES2Util::GetStringHintMode(mode) << ")"); 1465 << GLES2Util::GetStringHintMode(mode) << ")");
1466 helper_->Hint(target, mode); 1466 helper_->Hint(target, mode);
1467 CheckGLError(); 1467 CheckGLError();
1468 } 1468 }
1469 1469
1470 void GLES2Implementation::InvalidateFramebuffer(GLenum target, 1470 void GLES2Implementation::InvalidateFramebuffer(GLenum target,
1471 GLsizei count, 1471 GLsizei count,
1472 const GLenum* attachments) { 1472 const GLenum* attachments) {
1473 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1473 GPU_CLIENT_SINGLE_THREAD_CHECK();
1474 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInvalidateFramebuffer(" 1474 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInvalidateFramebuffer("
1475 << GLES2Util::GetStringInvalidateFrameBufferTarget(target) 1475 << GLES2Util::GetStringFrameBufferTarget(target) << ", "
1476 << ", " << count << ", " 1476 << count << ", " << static_cast<const void*>(attachments)
1477 << static_cast<const void*>(attachments) << ")"); 1477 << ")");
1478 GPU_CLIENT_LOG_CODE_BLOCK({ 1478 GPU_CLIENT_LOG_CODE_BLOCK({
1479 for (GLsizei i = 0; i < count; ++i) { 1479 for (GLsizei i = 0; i < count; ++i) {
1480 GPU_CLIENT_LOG(" " << i << ": " << attachments[0 + i * 1]); 1480 GPU_CLIENT_LOG(" " << i << ": " << attachments[0 + i * 1]);
1481 } 1481 }
1482 }); 1482 });
1483 if (count < 0) { 1483 if (count < 0) {
1484 SetGLError(GL_INVALID_VALUE, "glInvalidateFramebuffer", "count < 0"); 1484 SetGLError(GL_INVALID_VALUE, "glInvalidateFramebuffer", "count < 0");
1485 return; 1485 return;
1486 } 1486 }
1487 helper_->InvalidateFramebufferImmediate(target, count, attachments); 1487 helper_->InvalidateFramebufferImmediate(target, count, attachments);
1488 CheckGLError(); 1488 CheckGLError();
1489 } 1489 }
1490 1490
1491 void GLES2Implementation::InvalidateSubFramebuffer(GLenum target, 1491 void GLES2Implementation::InvalidateSubFramebuffer(GLenum target,
1492 GLsizei count, 1492 GLsizei count,
1493 const GLenum* attachments, 1493 const GLenum* attachments,
1494 GLint x, 1494 GLint x,
1495 GLint y, 1495 GLint y,
1496 GLsizei width, 1496 GLsizei width,
1497 GLsizei height) { 1497 GLsizei height) {
1498 GPU_CLIENT_SINGLE_THREAD_CHECK(); 1498 GPU_CLIENT_SINGLE_THREAD_CHECK();
1499 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInvalidateSubFramebuffer(" 1499 GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glInvalidateSubFramebuffer("
1500 << GLES2Util::GetStringInvalidateFrameBufferTarget(target) 1500 << GLES2Util::GetStringFrameBufferTarget(target) << ", "
1501 << ", " << count << ", " 1501 << count << ", " << static_cast<const void*>(attachments)
1502 << static_cast<const void*>(attachments) << ", " << x 1502 << ", " << x << ", " << y << ", " << width << ", "
1503 << ", " << y << ", " << width << ", " << height << ")"); 1503 << height << ")");
1504 GPU_CLIENT_LOG_CODE_BLOCK({ 1504 GPU_CLIENT_LOG_CODE_BLOCK({
1505 for (GLsizei i = 0; i < count; ++i) { 1505 for (GLsizei i = 0; i < count; ++i) {
1506 GPU_CLIENT_LOG(" " << i << ": " << attachments[0 + i * 1]); 1506 GPU_CLIENT_LOG(" " << i << ": " << attachments[0 + i * 1]);
1507 } 1507 }
1508 }); 1508 });
1509 if (count < 0) { 1509 if (count < 0) {
1510 SetGLError(GL_INVALID_VALUE, "glInvalidateSubFramebuffer", "count < 0"); 1510 SetGLError(GL_INVALID_VALUE, "glInvalidateSubFramebuffer", "count < 0");
1511 return; 1511 return;
1512 } 1512 }
1513 if (width < 0) { 1513 if (width < 0) {
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after
3653 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() { 3653 void GLES2Implementation::ApplyScreenSpaceAntialiasingCHROMIUM() {
3654 GPU_CLIENT_SINGLE_THREAD_CHECK(); 3654 GPU_CLIENT_SINGLE_THREAD_CHECK();
3655 GPU_CLIENT_LOG("[" << GetLogPrefix() 3655 GPU_CLIENT_LOG("[" << GetLogPrefix()
3656 << "] glApplyScreenSpaceAntialiasingCHROMIUM(" 3656 << "] glApplyScreenSpaceAntialiasingCHROMIUM("
3657 << ")"); 3657 << ")");
3658 helper_->ApplyScreenSpaceAntialiasingCHROMIUM(); 3658 helper_->ApplyScreenSpaceAntialiasingCHROMIUM();
3659 CheckGLError(); 3659 CheckGLError();
3660 } 3660 }
3661 3661
3662 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_IMPL_AUTOGEN_H_ 3662 #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/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698