Skip to content
Permalink
Browse files
2011-04-14 Alok Priyadarshi <alokp@chromium.org>
        Reviewed by Adam Barth.

        Remove dependency on chromium skia::PlatformCanvas
        https://bugs.webkit.org/show_bug.cgi?id=57563

        Fixed compile error on Mac when using Core Graphics.

        * DumpRenderTree/chromium/WebViewHost.cpp:
        (WebViewHost::paintRect):


Canonical link: https://commits.webkit.org/73700@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@83946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Adam Barth committed Apr 15, 2011
1 parent ba85700 commit 2afcafc41a2dbac22be005513fd614d9b4481f81
Showing 2 changed files with 14 additions and 1 deletion.
@@ -1,3 +1,15 @@
2011-04-14 Alok Priyadarshi <alokp@chromium.org>

Reviewed by Adam Barth.

Remove dependency on chromium skia::PlatformCanvas
https://bugs.webkit.org/show_bug.cgi?id=57563

Fixed compile error on Mac when using Core Graphics.

* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::paintRect):

2011-04-14 Alok Priyadarshi <alokp@chromium.org>

Reviewed by James Robinson.
@@ -1470,7 +1470,8 @@ void WebViewHost::paintRect(const WebRect& rect)
ASSERT(canvas());
m_isPainting = true;
#if PLATFORM(CG)
webWidget()->paint(canvas()->getTopPlatformDevice().GetBitmapContext(), rect);
webWidget()->paint(skia::BeginPlatformPaint(canvas()), rect);
skia::EndPlatformPaint(canvas());
#else
webWidget()->paint(canvas(), rect);
#endif

0 comments on commit 2afcafc

Please sign in to comment.