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

Side by Side Diff: Source/core/html/canvas/WebGLFramebuffer.cpp

Issue 207783002: Omit "int" when using "unsigned" modifier (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/core/html/TimeRanges.cpp ('k') | Source/core/html/canvas/WebGLGetInfo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 if (!object()) 482 if (!object())
483 return 0; 483 return 0;
484 WebGLAttachment* attachment = getAttachment(GL_COLOR_ATTACHMENT0); 484 WebGLAttachment* attachment = getAttachment(GL_COLOR_ATTACHMENT0);
485 if (!attachment) 485 if (!attachment)
486 return 0; 486 return 0;
487 return attachment->format(); 487 return attachment->format();
488 } 488 }
489 489
490 GLenum WebGLFramebuffer::checkStatus(const char** reason) const 490 GLenum WebGLFramebuffer::checkStatus(const char** reason) const
491 { 491 {
492 unsigned int count = 0; 492 unsigned count = 0;
493 GLsizei width = 0, height = 0; 493 GLsizei width = 0, height = 0;
494 bool haveDepth = false; 494 bool haveDepth = false;
495 bool haveStencil = false; 495 bool haveStencil = false;
496 bool haveDepthStencil = false; 496 bool haveDepthStencil = false;
497 for (AttachmentMap::const_iterator it = m_attachments.begin(); it != m_attac hments.end(); ++it) { 497 for (AttachmentMap::const_iterator it = m_attachments.begin(); it != m_attac hments.end(); ++it) {
498 WebGLAttachment* attachment = it->value.get(); 498 WebGLAttachment* attachment = it->value.get();
499 if (!isAttachmentComplete(attachment, it->key, reason)) 499 if (!isAttachmentComplete(attachment, it->key, reason))
500 return GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT; 500 return GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
501 if (!attachment->valid()) { 501 if (!attachment->valid()) {
502 *reason = "attachment is not valid"; 502 *reason = "attachment is not valid";
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT); 611 int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT);
612 ASSERT(index >= 0); 612 ASSERT(index >= 0);
613 if (index < static_cast<int>(m_drawBuffers.size())) 613 if (index < static_cast<int>(m_drawBuffers.size()))
614 return m_drawBuffers[index]; 614 return m_drawBuffers[index];
615 if (drawBuffer == GL_DRAW_BUFFER0_EXT) 615 if (drawBuffer == GL_DRAW_BUFFER0_EXT)
616 return GL_COLOR_ATTACHMENT0; 616 return GL_COLOR_ATTACHMENT0;
617 return GL_NONE; 617 return GL_NONE;
618 } 618 }
619 619
620 } 620 }
OLDNEW
« no previous file with comments | « Source/core/html/TimeRanges.cpp ('k') | Source/core/html/canvas/WebGLGetInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698