#include "config.h"
#include "TextureMapper.h"
#include "BitmapTexturePool.h"
#include "FilterOperations.h"
#include "GraphicsLayer.h"
#include "Timer.h"
#include <wtf/CurrentTime.h>
#if USE(TEXTURE_MAPPER)
namespace WebCore {
PassRefPtr<BitmapTexture> TextureMapper::acquireTextureFromPool(const IntSize& size, const BitmapTexture::Flags flags)
{
RefPtr<BitmapTexture> selectedTexture = m_texturePool->acquireTexture(size);
selectedTexture->reset(size, flags);
return selectedTexture.release();
}
std::unique_ptr<TextureMapper> TextureMapper::create()
{
return platformCreateAccelerated();
}
TextureMapper::TextureMapper()
: m_context(0)
, m_interpolationQuality(InterpolationDefault)
, m_textDrawingMode(TextModeFill)
, m_isMaskMode(false)
, m_wrapMode(StretchWrap)
{ }
TextureMapper::~TextureMapper()
{ }
}
#endif