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 20 matching lines...) Expand all Loading... |
31 #include "core/html/canvas/WebGLSharedObject.h" | 31 #include "core/html/canvas/WebGLSharedObject.h" |
32 #include "wtf/PassRefPtr.h" | 32 #include "wtf/PassRefPtr.h" |
33 #include "wtf/RefCounted.h" | 33 #include "wtf/RefCounted.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class WebGLRenderbuffer; | 37 class WebGLRenderbuffer; |
38 class WebGLTexture; | 38 class WebGLTexture; |
39 | 39 |
40 class WebGLFramebuffer FINAL : public WebGLContextObject, public ScriptWrappable
{ | 40 class WebGLFramebuffer FINAL : public WebGLContextObject, public ScriptWrappable
{ |
| 41 DEFINE_WRAPPERTYPEINFO(); |
41 public: | 42 public: |
42 class WebGLAttachment : public RefCountedWillBeGarbageCollectedFinalized<Web
GLAttachment> { | 43 class WebGLAttachment : public RefCountedWillBeGarbageCollectedFinalized<Web
GLAttachment> { |
43 public: | 44 public: |
44 virtual ~WebGLAttachment(); | 45 virtual ~WebGLAttachment(); |
45 | 46 |
46 virtual GLsizei width() const = 0; | 47 virtual GLsizei width() const = 0; |
47 virtual GLsizei height() const = 0; | 48 virtual GLsizei height() const = 0; |
48 virtual GLenum format() const = 0; | 49 virtual GLenum format() const = 0; |
49 // For texture attachment, type() returns the type of the attached textu
re. | 50 // For texture attachment, type() returns the type of the attached textu
re. |
50 // For renderbuffer attachment, the type of the renderbuffer may vary wi
th GL implementation. | 51 // For renderbuffer attachment, the type of the renderbuffer may vary wi
th GL implementation. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 128 |
128 bool m_hasEverBeenBound; | 129 bool m_hasEverBeenBound; |
129 | 130 |
130 Vector<GLenum> m_drawBuffers; | 131 Vector<GLenum> m_drawBuffers; |
131 Vector<GLenum> m_filteredDrawBuffers; | 132 Vector<GLenum> m_filteredDrawBuffers; |
132 }; | 133 }; |
133 | 134 |
134 } // namespace blink | 135 } // namespace blink |
135 | 136 |
136 #endif // WebGLFramebuffer_h | 137 #endif // WebGLFramebuffer_h |
OLD | NEW |