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

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

Issue 241113002: Remove some dead code from html/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 /* 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 GLenum attachmentType = it->key; 448 GLenum attachmentType = it->key;
449 attachmentObject->unattach(context()->webContext(), attachmentTy pe); 449 attachmentObject->unattach(context()->webContext(), attachmentTy pe);
450 removeAttachmentFromBoundFramebuffer(attachmentType); 450 removeAttachmentFromBoundFramebuffer(attachmentType);
451 checkMore = true; 451 checkMore = true;
452 break; 452 break;
453 } 453 }
454 } 454 }
455 } 455 }
456 } 456 }
457 457
458 GLsizei WebGLFramebuffer::colorBufferWidth() const
459 {
460 if (!object())
461 return 0;
462 WebGLAttachment* attachment = getAttachment(GL_COLOR_ATTACHMENT0);
463 if (!attachment)
464 return 0;
465
466 return attachment->width();
467 }
468
469 GLsizei WebGLFramebuffer::colorBufferHeight() const
470 {
471 if (!object())
472 return 0;
473 WebGLAttachment* attachment = getAttachment(GL_COLOR_ATTACHMENT0);
474 if (!attachment)
475 return 0;
476
477 return attachment->height();
478 }
479
480 GLenum WebGLFramebuffer::colorBufferFormat() const 458 GLenum WebGLFramebuffer::colorBufferFormat() const
481 { 459 {
482 if (!object()) 460 if (!object())
483 return 0; 461 return 0;
484 WebGLAttachment* attachment = getAttachment(GL_COLOR_ATTACHMENT0); 462 WebGLAttachment* attachment = getAttachment(GL_COLOR_ATTACHMENT0);
485 if (!attachment) 463 if (!attachment)
486 return 0; 464 return 0;
487 return attachment->format(); 465 return attachment->format();
488 } 466 }
489 467
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT); 589 int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT);
612 ASSERT(index >= 0); 590 ASSERT(index >= 0);
613 if (index < static_cast<int>(m_drawBuffers.size())) 591 if (index < static_cast<int>(m_drawBuffers.size()))
614 return m_drawBuffers[index]; 592 return m_drawBuffers[index];
615 if (drawBuffer == GL_DRAW_BUFFER0_EXT) 593 if (drawBuffer == GL_DRAW_BUFFER0_EXT)
616 return GL_COLOR_ATTACHMENT0; 594 return GL_COLOR_ATTACHMENT0;
617 return GL_NONE; 595 return GL_NONE;
618 } 596 }
619 597
620 } 598 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698