2011-01-17 Anders Carlsson <andersca@apple.com>
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Jan 2011 20:01:28 +0000 (20:01 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Jan 2011 20:01:28 +0000 (20:01 +0000)
commitd9c6d4796ed3a7111dfdd98a1a52a6fc5c36867c
treedc13cfe422b21b8587dc1f6027b681db03198122
parent06077001fe45138d52e2748da40ea6cc64ebe206
2011-01-17  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Factor bitmap context drawing code out into a shared function
        https://bugs.webkit.org/show_bug.cgi?id=52589

        * Platform/cg/CGUtilities.h: Added.
        * Platform/cg/CGUtilities.cpp: Added.
        (WebKit::paintBitmapContext):
        New function that will paint a bitmap context into a CGContext.

        * Shared/cg/ShareableBitmapCG.cpp:
        (WebKit::ShareableBitmap::paint):
        Use paintBitmapContext.

        * UIProcess/mac/BackingStoreMac.mm:
        (WebKit::BackingStore::paint):
        (WebKit::BackingStore::scroll):
        Use paintBitmapContext.

        * WebKit2.xcodeproj/project.pbxproj:
        * win/WebKit2.vcproj:
        * win/WebKit2Common.vsprops:
        Add CGUtilities.{cpp|h}.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75962 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/cg/CGUtilities.cpp [new file with mode: 0644]
Source/WebKit2/Platform/cg/CGUtilities.h [new file with mode: 0644]
Source/WebKit2/Shared/cg/ShareableBitmapCG.cpp
Source/WebKit2/UIProcess/mac/BackingStoreMac.mm
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
Source/WebKit2/win/WebKit2.vcproj
Source/WebKit2/win/WebKit2Common.vsprops