TextureMapperBackingStore.cpp [plain text]
#include "config.h"
#include "TextureMapperBackingStore.h"
#include "GraphicsLayer.h"
#include "ImageBuffer.h"
#include "TextureMapper.h"
#if USE(GRAPHICS_SURFACE)
#include "GraphicsSurface.h"
#include "TextureMapperGL.h"
#endif
namespace WebCore {
unsigned TextureMapperBackingStore::calculateExposedTileEdges(const FloatRect& totalRect, const FloatRect& tileRect)
{
unsigned exposedEdges = TextureMapper::NoEdges;
if (!tileRect.x())
exposedEdges |= TextureMapper::LeftEdge;
if (!tileRect.y())
exposedEdges |= TextureMapper::TopEdge;
if (tileRect.width() + tileRect.x() >= totalRect.width())
exposedEdges |= TextureMapper::RightEdge;
if (tileRect.height() + tileRect.y() >= totalRect.height())
exposedEdges |= TextureMapper::BottomEdge;
return exposedEdges;
}
}