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

Unified Diff: views/controls/table/table_view.cc

Issue 146131: Update Skia transfer modes to match changes in Skia as of r239 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | « views/controls/menu/native_menu_win.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/table/table_view.cc
===================================================================
--- views/controls/table/table_view.cc (revision 19197)
+++ views/controls/table/table_view.cc (working copy)
@@ -840,7 +840,7 @@
// rect does not include the icon).
gfx::Canvas canvas(kImageSize, kImageSize, false);
// Make the background completely transparent.
- canvas.drawColor(SK_ColorBLACK, SkPorterDuff::kClear_Mode);
+ canvas.drawColor(SK_ColorBLACK, SkXfermode::kClear_Mode);
HICON empty_icon =
IconUtil::CreateHICONFromSkBitmap(canvas.ExtractBitmap());
ImageList_AddIcon(image_list, empty_icon);
@@ -1234,7 +1234,7 @@
// this twice). As such, we always fill in the background.
canvas.drawColor(
skia::COLORREFToSkColor(GetSysColor(bg_color_index)),
- SkPorterDuff::kSrc_Mode);
+ SkXfermode::kSrc_Mode);
// + 1 for padding (we declared the image as 18x18 in the list-
// view when they are 16x16 so we get an extra pixel of padding).
canvas.DrawBitmapInt(image, 0, 0,
« no previous file with comments | « views/controls/menu/native_menu_win.cc ('k') | views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698