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

Unified Diff: printing/image_win.cc

Issue 605563002: Remove implicit HANDLE conversions from printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « printing/emf_win.cc ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/image_win.cc
diff --git a/printing/image_win.cc b/printing/image_win.cc
index fdf99c8bf6bdf4a0395e6b149986b4cd564569f2..501c0b8933fbd6002e960d6470afc2dbf5e76ad6 100644
--- a/printing/image_win.cc
+++ b/printing/image_win.cc
@@ -68,14 +68,14 @@ bool Image::LoadMetafile(const Metafile& metafile) {
gfx::CreateBitmapV4Header(rect.width(), rect.height(), &hdr);
unsigned char* bits = NULL;
base::win::ScopedBitmap bitmap(
- ::CreateDIBSection(hdc, reinterpret_cast<BITMAPINFO*>(&hdr), 0,
+ ::CreateDIBSection(hdc.Get(), reinterpret_cast<BITMAPINFO*>(&hdr), 0,
reinterpret_cast<void**>(&bits), NULL, 0));
DCHECK(bitmap);
- base::win::ScopedSelectObject select_object(hdc, bitmap);
+ base::win::ScopedSelectObject select_object(hdc.Get(), bitmap);
- skia::InitializeDC(hdc);
+ skia::InitializeDC(hdc.Get());
- bool success = metafile.Playback(hdc, NULL);
+ bool success = metafile.Playback(hdc.Get(), NULL);
row_length_ = size_.width() * sizeof(uint32);
size_t bytes = row_length_ * size_.height();
« no previous file with comments | « printing/emf_win.cc ('k') | printing/printing_context_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698