diff options
Diffstat (limited to 'Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h')
-rw-r--r-- | Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h b/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h index c6c9edb45..251e592f7 100644 --- a/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h +++ b/Source/WebCore/html/canvas/WebGLCompressedTextureS3TC.h @@ -23,29 +23,22 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WebGLCompressedTextureS3TC_h -#define WebGLCompressedTextureS3TC_h +#pragma once #include "WebGLExtension.h" -#include <wtf/PassOwnPtr.h> namespace WebCore { class WebGLTexture; -class WebGLCompressedTextureS3TC : public WebGLExtension { +class WebGLCompressedTextureS3TC final : public WebGLExtension { public: - static OwnPtr<WebGLCompressedTextureS3TC> create(WebGLRenderingContext*); - - static bool supported(WebGLRenderingContext*); - + explicit WebGLCompressedTextureS3TC(WebGLRenderingContextBase&); virtual ~WebGLCompressedTextureS3TC(); - virtual ExtensionName getName() const override; -private: - WebGLCompressedTextureS3TC(WebGLRenderingContext*); + static bool supported(WebGLRenderingContextBase&); + + ExtensionName getName() const override; }; } // namespace WebCore - -#endif // WebGLCompressedTextureS3TC_h |