GraphicsContext3DPrivate.h [plain text]
#ifndef GraphicsContext3DPrivate_h
#define GraphicsContext3DPrivate_h
#include "GLContext.h"
#include "GraphicsContext3D.h"
#if USE(TEXTURE_MAPPER)
#include "TextureMapperPlatformLayer.h"
#endif
namespace WebCore {
class GraphicsContext3DPrivate
#if USE(TEXTURE_MAPPER)
: public TextureMapperPlatformLayer
#endif
{
public:
GraphicsContext3DPrivate(GraphicsContext3D*, GraphicsContext3D::RenderStyle);
~GraphicsContext3DPrivate();
bool makeContextCurrent();
PlatformGraphicsContext3D platformContext();
GraphicsContext3D::RenderStyle renderStyle() { return m_renderStyle; }
#if USE(TEXTURE_MAPPER)
virtual void paintToTextureMapper(TextureMapper*, const FloatRect& target, const TransformationMatrix&, float opacity);
#endif
private:
GraphicsContext3D* m_context;
std::unique_ptr<GLContext> m_glContext;
GraphicsContext3D::RenderStyle m_renderStyle;
};
}
#endif // GraphicsContext3DPrivate_h