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

Unified Diff: printing/emf_win.cc

Issue 1492353002: Consolidate Windows bitmap and DC code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-printing-dc-from-device
Patch Set: remove !_WIN64 restriction on error reporting Created 4 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 | « no previous file | skia/ext/skia_utils_win.h » ('j') | skia/ext/skia_utils_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/emf_win.cc
diff --git a/printing/emf_win.cc b/printing/emf_win.cc
index b2699fdfe4a9df963dfacac9e5f3e00cd195486e..160f0306c6b9ce409cf929c4159de790fefa35bf 100644
--- a/printing/emf_win.cc
+++ b/printing/emf_win.cc
@@ -106,7 +106,7 @@ class RasterBitmap {
::SetGraphicsMode(context_.Get(), GM_ADVANCED);
void* bits = NULL;
gfx::Rect bitmap_rect(raster_size);
- gfx::CreateBitmapHeader(raster_size.width(), raster_size.height(),
+ skia::CreateBitmapHeader(raster_size.width(), raster_size.height(),
&header_.bmiHeader);
bitmap_.reset(CreateDIBSection(context_.Get(), &header_, DIB_RGB_COLORS,
&bits, NULL, 0));
@@ -388,7 +388,7 @@ bool Emf::Record::SafePlayback(Emf::EnumerationContext* context) const {
return false;
}
BITMAPINFOHEADER bmi = {0};
- gfx::CreateBitmapHeader(bitmap->width(), bitmap->height(), &bmi);
+ skia::CreateBitmapHeader(bitmap->width(), bitmap->height(), &bmi);
res = (0 != StretchDIBits(hdc, sdib_record->xDest, sdib_record->yDest,
sdib_record->cxDest,
sdib_record->cyDest, sdib_record->xSrc,
« no previous file with comments | « no previous file | skia/ext/skia_utils_win.h » ('j') | skia/ext/skia_utils_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698