X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fplatform%2Fgraphics%2FCrossfadeGeneratedImage.cpp;h=1d36b456a4969a425a6746f6fa5645154d9cf000;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=667e2553eccb0d74cebcd8306a3e526a1b00abd2;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp b/src/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp index 667e255..1d36b45 100644 --- a/src/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp +++ b/src/third_party/WebKit/Source/platform/graphics/CrossfadeGeneratedImage.cpp @@ -32,7 +32,7 @@ using namespace std; -namespace WebCore { +namespace blink { CrossfadeGeneratedImage::CrossfadeGeneratedImage(Image* fromImage, Image* toImage, float percentage, IntSize crossfadeSize, const IntSize& size) : m_fromImage(fromImage) @@ -84,7 +84,7 @@ void CrossfadeGeneratedImage::drawCrossfade(GraphicsContext* context) context->endLayer(); } -void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, blink::WebBlendMode blendMode) +void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, CompositeOperator compositeOp, WebBlendMode blendMode) { GraphicsContextStateSaver stateSaver(*context); context->setCompositeOperation(compositeOp, blendMode); @@ -97,9 +97,9 @@ void CrossfadeGeneratedImage::draw(GraphicsContext* context, const FloatRect& ds drawCrossfade(context); } -void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, blink::WebBlendMode blendMode, const IntSize& repeatSpacing) +void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatRect& srcRect, const FloatSize& scale, const FloatPoint& phase, CompositeOperator compositeOp, const FloatRect& dstRect, WebBlendMode blendMode, const IntSize& repeatSpacing) { - OwnPtr imageBuffer = context->createCompatibleBuffer(m_size); + OwnPtr imageBuffer = context->createRasterBuffer(m_size); if (!imageBuffer) return; @@ -111,4 +111,4 @@ void CrossfadeGeneratedImage::drawPattern(GraphicsContext* context, const FloatR imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRect, blendMode, repeatSpacing); } -} +} // namespace blink