diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-27 22:15:19 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-27 22:15:19 +0000 |
commit | 54910b7969906431a43c7a17bd1ee580f8eeb9fa (patch) | |
tree | fd12d10eb9b2a8d48311e82e585d113d56a730b1 /skia/ext/platform_device_mac.cc | |
parent | d5fbc00d5d55132f03f229f3dba001fc62ee6795 (diff) | |
download | chromium_src-54910b7969906431a43c7a17bd1ee580f8eeb9fa.zip chromium_src-54910b7969906431a43c7a17bd1ee580f8eeb9fa.tar.gz chromium_src-54910b7969906431a43c7a17bd1ee580f8eeb9fa.tar.bz2 |
Pull WebKit deps to get transparency fixes, and rebaseline affected layout tests.
Add a helper class to manage Windows' transparency issues. It will create layers
and manage transforms in such a way that most effects can be achieved with
fonts and form controls on Windows while looking nice.
This removes the magic transparency color and associated infrastructure since
it is no longer needed.
This fixes semitransparent ClearType antialiasing and pngs with alpha channels
with opacity applied.
BUG=559,2791,3229,6372
Review URL: http://codereview.chromium.org/21201
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/platform_device_mac.cc')
-rwxr-xr-x | skia/ext/platform_device_mac.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/skia/ext/platform_device_mac.cc b/skia/ext/platform_device_mac.cc index 6722105..0b09b9e 100755 --- a/skia/ext/platform_device_mac.cc +++ b/skia/ext/platform_device_mac.cc @@ -33,21 +33,12 @@ bool constrain(int available_size, int* position, int *size) { return false; } -// Sets the opacity of the specified value to 0xFF. -void makeOpaqueAlphaAdjuster(uint32_t* pixel) { - *pixel |= 0xFF000000; -} - } // namespace PlatformDeviceMac::PlatformDeviceMac(const SkBitmap& bitmap) : SkDevice(bitmap) { } -void PlatformDeviceMac::makeOpaque(int x, int y, int width, int height) { - processPixels(x, y, width, height, makeOpaqueAlphaAdjuster); -} - // Set up the CGContextRef for peaceful coexistence with Skia void PlatformDeviceMac::InitializeCGContext(CGContextRef context) { // CG defaults to the same settings as Skia |