| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // Wrapper for drawBuffersEXT/drawBuffersARB to work around a driver bug. | 99 // Wrapper for drawBuffersEXT/drawBuffersARB to work around a driver bug. |
| 100 void drawBuffers(const Vector<GLenum>& bufs); | 100 void drawBuffers(const Vector<GLenum>& bufs); |
| 101 | 101 |
| 102 GLenum getDrawBuffer(GLenum); | 102 GLenum getDrawBuffer(GLenum); |
| 103 | 103 |
| 104 void readBuffer(const GLenum colorBuffer) { m_readBuffer = colorBuffer; } | 104 void readBuffer(const GLenum colorBuffer) { m_readBuffer = colorBuffer; } |
| 105 | 105 |
| 106 GLenum getReadBuffer() const { return m_readBuffer; } | 106 GLenum getReadBuffer() const { return m_readBuffer; } |
| 107 | 107 |
| 108 virtual void visitChildDOMWrappers(v8::Isolate*, | |
| 109 const v8::Persistent<v8::Object>&); | |
| 110 | |
| 111 DECLARE_VIRTUAL_TRACE(); | 108 DECLARE_VIRTUAL_TRACE(); |
| 112 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 109 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 113 | 110 |
| 114 protected: | 111 protected: |
| 115 explicit WebGLFramebuffer(WebGLRenderingContextBase*); | 112 explicit WebGLFramebuffer(WebGLRenderingContextBase*); |
| 116 | 113 |
| 117 bool hasObject() const override { return m_object != 0; } | 114 bool hasObject() const override { return m_object != 0; } |
| 118 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; | 115 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; |
| 119 | 116 |
| 120 private: | 117 private: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 151 |
| 155 Vector<GLenum> m_drawBuffers; | 152 Vector<GLenum> m_drawBuffers; |
| 156 Vector<GLenum> m_filteredDrawBuffers; | 153 Vector<GLenum> m_filteredDrawBuffers; |
| 157 | 154 |
| 158 GLenum m_readBuffer; | 155 GLenum m_readBuffer; |
| 159 }; | 156 }; |
| 160 | 157 |
| 161 } // namespace blink | 158 } // namespace blink |
| 162 | 159 |
| 163 #endif // WebGLFramebuffer_h | 160 #endif // WebGLFramebuffer_h |
| OLD | NEW |