TextureMapperSurfaceBackingStore.cpp [plain text]
#include "config.h"
#if USE(GRAPHICS_SURFACE)
#include "TextureMapperSurfaceBackingStore.h"
#include "GraphicsSurface.h"
namespace WebCore {
void TextureMapperSurfaceBackingStore::setGraphicsSurface(PassRefPtr<GraphicsSurface> surface)
{
m_graphicsSurface = surface;
}
void TextureMapperSurfaceBackingStore::swapBuffersIfNeeded(uint32_t)
{
if (m_graphicsSurface)
m_graphicsSurface->swapBuffers();
}
PassRefPtr<BitmapTexture> TextureMapperSurfaceBackingStore::texture() const
{
RefPtr<BitmapTexture> emptyTexture;
return emptyTexture;
}
void TextureMapperSurfaceBackingStore::paintToTextureMapper(TextureMapper* textureMapper, const FloatRect& targetRect, const TransformationMatrix& transform, float opacity)
{
if (m_graphicsSurface)
m_graphicsSurface->paintToTextureMapper(textureMapper, targetRect, transform, opacity);
}
} #endif