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