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

Unified Diff: chrome/renderer/mock_printer.cc

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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: chrome/renderer/mock_printer.cc
diff --git a/chrome/renderer/mock_printer.cc b/chrome/renderer/mock_printer.cc
index b87523cef7ed01e6e8a8b473c591210685ada9e6..b579f885b3cad4330d42e5df8e7746299c550d6c 100644
--- a/chrome/renderer/mock_printer.cc
+++ b/chrome/renderer/mock_printer.cc
@@ -12,6 +12,19 @@
#include "printing/units.h"
#include "testing/gtest/include/gtest/gtest.h"
+MockPrinterPage::MockPrinterPage(const void* source_data,
+ uint32 source_size,
+ const printing::Image& image)
+ : source_size_(source_size),
+ image_(image) {
+ // Create copies of the source data
+ source_data_.reset(new uint8[source_size]);
+ if (source_data_.get())
+ memcpy(source_data_.get(), source_data, source_size);
+}
+
+MockPrinterPage::~MockPrinterPage() {}
+
MockPrinter::MockPrinter()
: printable_width_(0),
printable_height_(0),

Powered by Google App Engine
This is Rietveld 408576698