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

Unified Diff: skia/ext/skia_utils_win.h

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: fix bad merge Created 4 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 | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/skia_utils_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_win.h
diff --git a/skia/ext/skia_utils_win.h b/skia/ext/skia_utils_win.h
index 80cbe54b0e7b394ef565b2f90fddfeea0747856f..c738a63244598ead274cd0a4c89594a2f44cd68a 100644
--- a/skia/ext/skia_utils_win.h
+++ b/skia/ext/skia_utils_win.h
@@ -60,6 +60,13 @@ SK_API void LoadTransformToDC(HDC dc, const SkMatrix& matrix);
SK_API void CopyHDC(HDC source, HDC destination, int x, int y, bool is_opaque,
const RECT& src_rect, const SkMatrix& transform);
+// Fills in a BITMAPINFOHEADER structure given the bitmap's size.
+SK_API void CreateBitmapHeader(int width, int height, BITMAPINFOHEADER* hdr);
+
+SK_API HBITMAP CreateHBitmap(int width, int height,
+ HANDLE shared_section = nullptr,
+ void** data = nullptr);
+
} // namespace skia
#endif // SKIA_EXT_SKIA_UTILS_WIN_H_
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/skia_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698