WebGLLayerWebKitThread.h [plain text]
#ifndef WebGLLayerWebKitThread_h
#define WebGLLayerWebKitThread_h
#if USE(ACCELERATED_COMPOSITING) && ENABLE(WEBGL)
#include "EGLImageLayerWebKitThread.h"
namespace WebCore {
class GraphicsContext3D;
class WebGLLayerWebKitThread : public EGLImageLayerWebKitThread {
public:
static PassRefPtr<WebGLLayerWebKitThread> create()
{
return adoptRef(new WebGLLayerWebKitThread());
}
virtual ~WebGLLayerWebKitThread();
void setWebGLContext(GraphicsContext3D* context) { m_webGLContext = context; }
void webGLContextDestroyed();
protected:
virtual void updateTextureContentsIfNeeded();
virtual void deleteTextures();
private:
WebGLLayerWebKitThread();
GraphicsContext3D* m_webGLContext;
};
}
#endif // USE(ACCELERATED_COMPOSITING) && ENABLE(WEBGL)
#endif // WebGLLayerWebKitThread_h