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

Unified Diff: base/gfx/platform_device_mac.h

Issue 1853: Refactor the platform canvas unit test a bit so that it can be run on... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/gfx/platform_device.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/platform_device_mac.h
===================================================================
--- base/gfx/platform_device_mac.h (revision 1896)
+++ base/gfx/platform_device_mac.h (working copy)
@@ -59,6 +59,12 @@
// 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);
« no previous file with comments | « base/gfx/platform_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698