| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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*, | 108 virtual void visitChildDOMWrappers(v8::Isolate*, |
| 109 const v8::Persistent<v8::Object>&); | 109 const v8::Persistent<v8::Object>&); |
| 110 | 110 |
| 111 DECLARE_VIRTUAL_TRACE(); | 111 DECLARE_VIRTUAL_TRACE(); |
| 112 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 112 | 113 |
| 113 protected: | 114 protected: |
| 114 explicit WebGLFramebuffer(WebGLRenderingContextBase*); | 115 explicit WebGLFramebuffer(WebGLRenderingContextBase*); |
| 115 | 116 |
| 116 bool hasObject() const override { return m_object != 0; } | 117 bool hasObject() const override { return m_object != 0; } |
| 117 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; | 118 void deleteObjectImpl(gpu::gles2::GLES2Interface*) override; |
| 118 | 119 |
| 119 private: | 120 private: |
| 120 WebGLAttachment* getAttachment(GLenum attachment) const; | 121 WebGLAttachment* getAttachment(GLenum attachment) const; |
| 121 | 122 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 154 |
| 154 Vector<GLenum> m_drawBuffers; | 155 Vector<GLenum> m_drawBuffers; |
| 155 Vector<GLenum> m_filteredDrawBuffers; | 156 Vector<GLenum> m_filteredDrawBuffers; |
| 156 | 157 |
| 157 GLenum m_readBuffer; | 158 GLenum m_readBuffer; |
| 158 }; | 159 }; |
| 159 | 160 |
| 160 } // namespace blink | 161 } // namespace blink |
| 161 | 162 |
| 162 #endif // WebGLFramebuffer_h | 163 #endif // WebGLFramebuffer_h |
| OLD | NEW |