| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 static GLenum getValidFormatForInternalFormat(GLenum); | 44 static GLenum getValidFormatForInternalFormat(GLenum); |
| 45 | 45 |
| 46 bool hasEverBeenBound() const { return object() && m_target; } | 46 bool hasEverBeenBound() const { return object() && m_target; } |
| 47 | 47 |
| 48 static GLint computeLevelCount(GLsizei width, GLsizei height, GLsizei depth)
; | 48 static GLint computeLevelCount(GLsizei width, GLsizei height, GLsizei depth)
; |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 explicit WebGLTexture(WebGLRenderingContextBase*); | 51 explicit WebGLTexture(WebGLRenderingContextBase*); |
| 52 | 52 |
| 53 void deleteObjectImpl(WebGraphicsContext3D*) override; | 53 void deleteObjectImpl(WebGraphicsContext3D*, gpu::gles2::GLES2Interface*) ov
erride; |
| 54 | 54 |
| 55 bool isTexture() const override { return true; } | 55 bool isTexture() const override { return true; } |
| 56 | 56 |
| 57 int mapTargetToIndex(GLenum) const; | 57 int mapTargetToIndex(GLenum) const; |
| 58 | 58 |
| 59 GLenum m_target; | 59 GLenum m_target; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace blink | 62 } // namespace blink |
| 63 | 63 |
| 64 #endif // WebGLTexture_h | 64 #endif // WebGLTexture_h |
| OLD | NEW |