WebGLRenderingContext.h [plain text]
#pragma once
#include "WebGLRenderingContextBase.h"
namespace WebCore {
class WebGLRenderingContext final : public WebGLRenderingContextBase {
public:
WebGLRenderingContext(HTMLCanvasElement&, GraphicsContext3DAttributes);
WebGLRenderingContext(HTMLCanvasElement&, PassRefPtr<GraphicsContext3D>, GraphicsContext3DAttributes);
private:
bool isWebGL1() const final { return true; }
WebGLExtension* getExtension(const String&) final;
WebGLGetInfo getParameter(GC3Denum pname) final;
Vector<String> getSupportedExtensions() final;
WebGLGetInfo getFramebufferAttachmentParameter(GC3Denum target, GC3Denum attachment, GC3Denum pname) final;
void renderbufferStorage(GC3Denum target, GC3Denum internalformat, GC3Dsizei width, GC3Dsizei height) final;
bool validateFramebufferFuncParameters(const char* functionName, GC3Denum target, GC3Denum attachment) final;
void hint(GC3Denum target, GC3Denum mode) final;
void clear(GC3Dbitfield mask) final;
GC3Dint getMaxDrawBuffers() final;
GC3Dint getMaxColorAttachments() final;
void initializeVertexArrayObjects() final;
bool validateIndexArrayConservative(GC3Denum type, unsigned& numElementsRequired) final;
bool validateBlendEquation(const char* functionName, GC3Denum mode) final;
bool validateCapability(const char* functionName, GC3Denum cap) final;
};
}
SPECIALIZE_TYPE_TRAITS_CANVASRENDERINGCONTEXT(WebCore::WebGLRenderingContext, isWebGL1())