diff options
author | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 20:38:55 +0000 |
---|---|---|
committer | awalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 20:38:55 +0000 |
commit | ab52947d4390b1b59aae47f5f6c16b7d537030fd (patch) | |
tree | 3aa8a55fa87f8442a5bd8c3cafa4883ac1797c28 /base/gfx/platform_device_mac.h | |
parent | f9ad22f0e3faea2c7a1fb9853bbf3fb768637be0 (diff) | |
download | chromium_src-ab52947d4390b1b59aae47f5f6c16b7d537030fd.zip chromium_src-ab52947d4390b1b59aae47f5f6c16b7d537030fd.tar.gz chromium_src-ab52947d4390b1b59aae47f5f6c16b7d537030fd.tar.bz2 |
Refactor the platform canvas unit test a bit so that it can be run on
multiple platforms. Also adjusts platfom_canvas.h and platform_device.h
so that some upper layers can include them instead of the windows
versions.
Change was originally http://codereview.chromium.org/1616, which was created in the wrong source tree. Applying approval from that issue.
Review URL: http://codereview.chromium.org/1853
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx/platform_device_mac.h')
-rwxr-xr-x | base/gfx/platform_device_mac.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/gfx/platform_device_mac.h b/base/gfx/platform_device_mac.h index 8cd2251..69eac95 100755 --- a/base/gfx/platform_device_mac.h +++ b/base/gfx/platform_device_mac.h @@ -59,6 +59,12 @@ class PlatformDeviceMac : public SkDevice { // Returns if the preferred rendering engine is vectorial or bitmap based. virtual bool IsVectorial() = 0; + // On platforms where the native rendering API does not support rendering + // into bitmaps with a premultiplied alpha channel, this call is responsible + // for doing any fixup necessary. It is not used on the Mac, since + // CoreGraphics can handle premultiplied alpha just fine. + virtual void fixupAlphaBeforeCompositing() = 0; + // Initializes the default settings and colors in a device context. static void InitializeCGContext(CGContextRef context); |