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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef WebGLTexture_h | 26 #ifndef WebGLTexture_h |
27 #define WebGLTexture_h | 27 #define WebGLTexture_h |
28 | 28 |
29 #include "bindings/v8/ScriptWrappable.h" | 29 #include "bindings/v8/ScriptWrappable.h" |
30 #include "core/html/canvas/WebGLSharedObject.h" | 30 #include "core/html/canvas/WebGLSharedObject.h" |
31 #include <wtf/PassRefPtr.h> | 31 #include "wtf/PassRefPtr.h" |
32 #include <wtf/RefCounted.h> | 32 #include "wtf/Vector.h" |
33 #include <wtf/Vector.h> | |
34 | 33 |
35 namespace WebCore { | 34 namespace WebCore { |
36 | 35 |
37 class WebGLTexture : public WebGLSharedObject, public ScriptWrappable { | 36 class WebGLTexture : public WebGLSharedObject, public ScriptWrappable { |
38 public: | 37 public: |
39 enum TextureExtensionFlag { | 38 enum TextureExtensionFlag { |
40 NoTextureExtensionEnabled = 0, | 39 NoTextureExtensionEnabled = 0, |
41 TextureFloatLinearExtensionEnabled = 1 << 0, | 40 TextureFloatLinearExtensionEnabled = 1 << 0, |
42 TextureHalfFloatLinearExtensionEnabled = 1 << 1 | 41 TextureHalfFloatLinearExtensionEnabled = 1 << 1 |
43 }; | 42 }; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 bool m_isCubeComplete; | 129 bool m_isCubeComplete; |
131 bool m_isComplete; | 130 bool m_isComplete; |
132 bool m_needToUseBlackTexture; | 131 bool m_needToUseBlackTexture; |
133 bool m_isFloatType; | 132 bool m_isFloatType; |
134 bool m_isHalfFloatType; | 133 bool m_isHalfFloatType; |
135 }; | 134 }; |
136 | 135 |
137 } // namespace WebCore | 136 } // namespace WebCore |
138 | 137 |
139 #endif // WebGLTexture_h | 138 #endif // WebGLTexture_h |
OLD | NEW |