Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 6840057: Map webkit glue when Mac build uses Skia. (Closed)

Created:
9 years, 8 months ago by _cary
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Map webkit glue when Mac build uses Skia. In webkit_glue::DecodeImage(), the WebImage is of type SkBitmap instead of CGImage, so take the general case if USE_SKIA is defined. The generic version of WebCursor defines SetCustomData and ImageFromCustomData only if WEBKIT_USING_SKIA is enabled, so disable the corresponding routines in the Mac version. In webkit_glue::WebThemeEngineImpl::paintScrollbarThumb(), map the WebCanvas (i.e. SkCanvas) to a CGContext to paint the scrollbar thumb, using the SkiaBitLocker utility class. SkiaBitLocker is described in http://codereview.chromium.org/7031006/ These changes make no functional change to any existing port, so have no new tests. BUG=79463 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86151

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 3

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -2 lines) Patch
M webkit/glue/webcursor_mac.mm View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/webthemeengine_impl_mac.cc View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
_cary
9 years, 8 months ago (2011-04-14 16:56:56 UTC) #1
Nico
http://codereview.chromium.org/6840057/diff/1004/webkit/glue/webthemeengine_impl_mac.cc File webkit/glue/webthemeengine_impl_mac.cc (right): http://codereview.chromium.org/6840057/diff/1004/webkit/glue/webthemeengine_impl_mac.cc#newcode65 webkit/glue/webthemeengine_impl_mac.cc:65: #endif I assume you will end up with these ...
9 years, 8 months ago (2011-04-14 17:04:44 UTC) #2
_cary
http://codereview.chromium.org/6840057/diff/1004/webkit/glue/webthemeengine_impl_mac.cc File webkit/glue/webthemeengine_impl_mac.cc (right): http://codereview.chromium.org/6840057/diff/1004/webkit/glue/webthemeengine_impl_mac.cc#newcode65 webkit/glue/webthemeengine_impl_mac.cc:65: #endif Outside of this CL and http://codereview.chromium.org/6823081/ (4 occurrences) ...
9 years, 8 months ago (2011-04-14 17:52:32 UTC) #3
Nico
http://codereview.chromium.org/6840057/diff/1004/webkit/glue/webthemeengine_impl_mac.cc File webkit/glue/webthemeengine_impl_mac.cc (right): http://codereview.chromium.org/6840057/diff/1004/webkit/glue/webthemeengine_impl_mac.cc#newcode65 webkit/glue/webthemeengine_impl_mac.cc:65: #endif On 2011/04/14 17:52:32, _cary wrote: > Outside of ...
9 years, 8 months ago (2011-04-14 17:55:25 UTC) #4
_cary
This moves the bit locker class to platform/graphics/skia as you suggested.
9 years, 7 months ago (2011-04-29 19:40:15 UTC) #5
_cary
I uploaded the patchset erroneously. Will upload the correct one soon.
9 years, 7 months ago (2011-04-29 19:42:01 UTC) #6
_cary
Nico, please review. Thanks
9 years, 7 months ago (2011-05-02 13:06:25 UTC) #7
Nico
LGTM
9 years, 7 months ago (2011-05-02 15:28:20 UTC) #8
_cary
Updated to reflect move of canvas-to-context utility from WebKit back to skia/ext. Tony, let me ...
9 years, 7 months ago (2011-05-17 20:58:57 UTC) #9
tony
LGTM
9 years, 7 months ago (2011-05-17 21:04:30 UTC) #10
commit-bot: I haz the power
9 years, 7 months ago (2011-05-20 21:54:09 UTC) #11
Change committed as 86151

Powered by Google App Engine
This is Rietveld 408576698