| OLD | NEW |
| 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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 ASSERT(index >= 0); | 623 ASSERT(index >= 0); |
| 624 if (index < static_cast<int>(m_drawBuffers.size())) | 624 if (index < static_cast<int>(m_drawBuffers.size())) |
| 625 return m_drawBuffers[index]; | 625 return m_drawBuffers[index]; |
| 626 if (drawBuffer == GL_DRAW_BUFFER0_EXT) | 626 if (drawBuffer == GL_DRAW_BUFFER0_EXT) |
| 627 return GL_COLOR_ATTACHMENT0; | 627 return GL_COLOR_ATTACHMENT0; |
| 628 return GL_NONE; | 628 return GL_NONE; |
| 629 } | 629 } |
| 630 | 630 |
| 631 void WebGLFramebuffer::trace(Visitor* visitor) | 631 void WebGLFramebuffer::trace(Visitor* visitor) |
| 632 { | 632 { |
| 633 #if ENABLE(OILPAN) |
| 633 visitor->trace(m_attachments); | 634 visitor->trace(m_attachments); |
| 635 #endif |
| 634 WebGLContextObject::trace(visitor); | 636 WebGLContextObject::trace(visitor); |
| 635 } | 637 } |
| 636 | 638 |
| 637 } | 639 } |
| OLD | NEW |