ImageBuffer::draw should deep copy if drawing to an accelerated context
authormdelaney@apple.com <mdelaney@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 07:23:22 +0000 (07:23 +0000)
committermdelaney@apple.com <mdelaney@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jan 2012 07:23:22 +0000 (07:23 +0000)
commit0afd61844d9b064d02c008814f37758eca24aa4a
treec940aab38d00f61f76461167b3f564d38b509e2f
parentc593a0e4e9605f2f7e3c9cae1267b28139867cfa
ImageBuffer::draw should deep copy if drawing to an accelerated context
https://bugs.webkit.org/show_bug.cgi?id=77185

Reviewed by Simon Fraser.

No new tests since any test for this issue would be flaky at best.

* platform/graphics/cg/ImageBufferCG.cpp: Deep copy when drawing ourself into
    an accelerated context for both draw and drawPattern.
(WebCore::ImageBuffer::draw):
(WebCore::ImageBuffer::drawPattern):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp