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

Unified Diff: chrome/browser/ui/panels/taskbar_window_thumbnailer_win.cc

Issue 10701063: Cleanup gfx::Canvas now that 10562027 has landed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/panels/panel_frame_view.cc ('k') | chrome/browser/ui/views/dropdown_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/taskbar_window_thumbnailer_win.cc
diff --git a/chrome/browser/ui/panels/taskbar_window_thumbnailer_win.cc b/chrome/browser/ui/panels/taskbar_window_thumbnailer_win.cc
index 5eee2333347d4427d4c9f93d84c7a0101cefe21a..4dfdcdbb31bc85f661ae2005e4a62504747efe74 100644
--- a/chrome/browser/ui/panels/taskbar_window_thumbnailer_win.cc
+++ b/chrome/browser/ui/panels/taskbar_window_thumbnailer_win.cc
@@ -128,11 +128,11 @@ SkBitmap* TaskbarWindowThumbnailerWin::CaptureWindowImage() const {
int width = bounds.right - bounds.left;
int height = bounds.bottom - bounds.top;
- gfx::Canvas canvas(gfx::Size(width, height), false);
+ gfx::Canvas canvas(gfx::Size(width, height), ui::SCALE_FACTOR_100P, false);
HDC target_dc = canvas.BeginPlatformPaint();
HDC source_dc = ::GetDC(hwnd_);
::BitBlt(target_dc, 0, 0, width, height, source_dc, 0, 0, SRCCOPY);
::ReleaseDC(hwnd_, source_dc);
canvas.EndPlatformPaint();
- return new SkBitmap(canvas.ExtractBitmap());
+ return new SkBitmap(canvas.ExtractImageRep().sk_bitmap());
}
« no previous file with comments | « chrome/browser/ui/panels/panel_frame_view.cc ('k') | chrome/browser/ui/views/dropdown_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698