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

Unified Diff: base/gfx/vector_device.cc

Issue 7813: Call GdiAlphaBlend directly instead of the AlphaBlend wrapper in msimg32.dll.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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/bitmap_platform_device_win.cc ('k') | chrome/app/chrome.dll.deps » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/vector_device.cc
===================================================================
--- base/gfx/vector_device.cc (revision 3604)
+++ base/gfx/vector_device.cc (working copy)
@@ -583,13 +583,13 @@
DCHECK(result);
// Note that this function expect premultiplied colors (!)
BLENDFUNCTION blend_function = {AC_SRC_OVER, 0, alpha, AC_SRC_ALPHA};
- result = AlphaBlend(dc,
- x, y, // Destination origin.
- src_size_x, src_size_y, // Destination size.
- bitmap_dc,
- 0, 0, // Source origin.
- src_size_x, src_size_y, // Source size.
- blend_function);
+ result = GdiAlphaBlend(dc,
+ x, y, // Destination origin.
+ src_size_x, src_size_y, // Destination size.
+ bitmap_dc,
+ 0, 0, // Source origin.
+ src_size_x, src_size_y, // Source size.
+ blend_function);
DCHECK(result);
result = SetStretchBltMode(dc, previous_mode);
DCHECK(result);
« no previous file with comments | « base/gfx/bitmap_platform_device_win.cc ('k') | chrome/app/chrome.dll.deps » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698