diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp')
-rw-r--r-- | Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp b/Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp index b8586ac18..218c5e7e3 100644 --- a/Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp +++ b/Source/WebCore/platform/graphics/surfaces/win/GraphicsSurfaceWin.cpp @@ -421,13 +421,13 @@ void GraphicsSurface::platformCopyFromTexture(uint32_t texture, const IntRect& s m_private->copyFromTexture(texture, sourceRect); } -void GraphicsSurface::platformPaintToTextureMapper(TextureMapper* textureMapper, const FloatRect& targetRect, const TransformationMatrix& transform, float opacity, BitmapTexture* mask) +void GraphicsSurface::platformPaintToTextureMapper(TextureMapper* textureMapper, const FloatRect& targetRect, const TransformationMatrix& transform, float opacity) { - GLuint frontBufferTexture = platformGetTextureID(); - + IntSize size = m_private->size(); + FloatRect rectOnContents(FloatPoint::zero(), size); TransformationMatrix adjustedTransform = transform; - adjustedTransform.multiply(TransformationMatrix::rectToRect(FloatRect(FloatPoint::zero(), m_private->size()), targetRect)); - static_cast<TextureMapperGL*>(textureMapper)->drawTexture(frontBufferTexture, 0, m_private->size(), targetRect, adjustedTransform, opacity, mask); + adjustedTransform.multiply(TransformationMatrix::rectToRect(rectOnContents, targetRect)); + static_cast<TextureMapperGL*>(textureMapper)->drawTexture(platformGetTextureID(), 0, size, rectOnContents, adjustedTransform, opacity); } uint32_t GraphicsSurface::platformFrontBuffer() const |