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

Unified Diff: chrome/browser/ui/views/tabs/native_view_photobooth_win.cc

Issue 6879013: skia::PlatformCanvas is being deprecated. Going forward we will use gfx::Canvas wherever we need ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « chrome/browser/ui/views/tabs/dragged_tab_view.cc ('k') | chrome/browser/ui/views/tabs/side_tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/native_view_photobooth_win.cc
===================================================================
--- chrome/browser/ui/views/tabs/native_view_photobooth_win.cc (revision 82144)
+++ chrome/browser/ui/views/tabs/native_view_photobooth_win.cc (working copy)
@@ -110,9 +110,10 @@
SRCCOPY);
// Windows screws up the alpha channel on all text it draws, and so we need
// to call makeOpaque _after_ the blit to correct for this.
- canvas->AsCanvasSkia()->getTopPlatformDevice().makeOpaque(
- target_bounds.x(), target_bounds.y(), target_bounds.width(),
- target_bounds.height());
+ skia::MakeOpaque(
+ SkIRect::MakeXYWH(target_bounds.x(), target_bounds.y(),
+ target_bounds.width(), target_bounds.height()),
+ canvas->AsCanvasSkia()->skia_canvas());
ReleaseDC(current_hwnd_, source_dc);
canvas->EndPlatformPaint();
}
« no previous file with comments | « chrome/browser/ui/views/tabs/dragged_tab_view.cc ('k') | chrome/browser/ui/views/tabs/side_tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698