TextureMapperBackingStore.h [plain text]
#ifndef TextureMapperBackingStore_h
#define TextureMapperBackingStore_h
#include "FloatRect.h"
#include "Image.h"
#include "TextureMapper.h"
#include "TextureMapperPlatformLayer.h"
#include <wtf/RefPtr.h>
#if USE(GRAPHICS_SURFACE)
#include "GraphicsSurface.h"
#endif
namespace WebCore {
class GraphicsLayer;
class TextureMapperBackingStore : public TextureMapperPlatformLayer, public RefCounted<TextureMapperBackingStore> {
public:
virtual RefPtr<BitmapTexture> texture() const = 0;
virtual void paintToTextureMapper(TextureMapper&, const FloatRect&, const TransformationMatrix&, float) = 0;
virtual void drawRepaintCounter(TextureMapper&, int , const Color&, const FloatRect&, const TransformationMatrix&) { }
virtual ~TextureMapperBackingStore() { }
protected:
static unsigned calculateExposedTileEdges(const FloatRect& totalRect, const FloatRect& tileRect);
};
}
#endif // TextureMapperBackingStore_h