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

Unified Diff: printing/image.cc

Issue 2812263002: clean up printing::Image and printing::Metafile (Closed)
Patch Set: return Created 3 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
Index: printing/image.cc
diff --git a/printing/image.cc b/printing/image.cc
index 37c4ceda8518a2af843f4438dd9fc8db29faed9c..b89c867987cb811c76f23c977f6a99f2852bdb8b 100644
--- a/printing/image.cc
+++ b/printing/image.cc
@@ -18,10 +18,9 @@
namespace printing {
-Image::Image(const Metafile& metafile)
- : row_length_(0),
- ignore_alpha_(true) {
- LoadMetafile(metafile);
+Image::Image(const void* metafile_src_buffer, size_t metafile_src_buffer_size)
+ : row_length_(0), ignore_alpha_(true) {
+ LoadMetafile(metafile_src_buffer, metafile_src_buffer_size);
}
Image::Image(const Image& image)
« printing/image.h ('K') | « printing/image.h ('k') | printing/image_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698