| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 GLenum getInternalFormat(GLenum target, GLint level) const; | 61 GLenum getInternalFormat(GLenum target, GLint level) const; |
| 62 GLenum getType(GLenum target, GLint level) const; | 62 GLenum getType(GLenum target, GLint level) const; |
| 63 GLsizei getWidth(GLenum target, GLint level) const; | 63 GLsizei getWidth(GLenum target, GLint level) const; |
| 64 GLsizei getHeight(GLenum target, GLint level) const; | 64 GLsizei getHeight(GLenum target, GLint level) const; |
| 65 GLsizei getDepth(GLenum target, GLint level) const; | 65 GLsizei getDepth(GLenum target, GLint level) const; |
| 66 bool isValid(GLenum target, GLint level) const; | 66 bool isValid(GLenum target, GLint level) const; |
| 67 bool isImmutable() const { return m_immutable; } | 67 bool isImmutable() const { return m_immutable; } |
| 68 | 68 |
| 69 static GLenum getValidFormatForInternalFormat(GLenum); | 69 static GLenum getValidFormatForInternalFormat(GLenum); |
| 70 | 70 |
| 71 bool isCubeComplete() const { return m_isCubeComplete; } |
| 72 |
| 71 // Whether width/height is NotPowerOfTwo. | 73 // Whether width/height is NotPowerOfTwo. |
| 72 static bool isNPOT(GLsizei, GLsizei); | 74 static bool isNPOT(GLsizei, GLsizei); |
| 73 | 75 |
| 74 bool isNPOT() const; | 76 bool isNPOT() const; |
| 75 // Determine if texture sampling should always return [0, 0, 0, 1] (OpenGL E
S 2.0 Sec 3.8.2). | 77 // Determine if texture sampling should always return [0, 0, 0, 1] (OpenGL E
S 2.0 Sec 3.8.2). |
| 76 bool needToUseBlackTexture(TextureExtensionFlag) const; | 78 bool needToUseBlackTexture(TextureExtensionFlag) const; |
| 77 | 79 |
| 78 bool hasEverBeenBound() const { return object() && m_target; } | 80 bool hasEverBeenBound() const { return object() && m_target; } |
| 79 | 81 |
| 80 static GLint computeLevelCount(GLsizei width, GLsizei height, GLsizei depth)
; | 82 static GLint computeLevelCount(GLsizei width, GLsizei height, GLsizei depth)
; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 bool m_isHalfFloatType; | 143 bool m_isHalfFloatType; |
| 142 bool m_isWebGL2OrHigher; | 144 bool m_isWebGL2OrHigher; |
| 143 bool m_immutable; | 145 bool m_immutable; |
| 144 size_t m_baseLevel; | 146 size_t m_baseLevel; |
| 145 size_t m_maxLevel; | 147 size_t m_maxLevel; |
| 146 }; | 148 }; |
| 147 | 149 |
| 148 } // namespace blink | 150 } // namespace blink |
| 149 | 151 |
| 150 #endif // WebGLTexture_h | 152 #endif // WebGLTexture_h |
| OLD | NEW |