summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_printer.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 16:57:03 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-19 16:57:03 +0000
commit8e38341c65360b48c32b88c58d6ac490516c0c0c (patch)
tree381bfdd42b59c1c4fa2368dec5ed479d83ab6f16 /chrome/renderer/mock_printer.cc
parent0b97feeb41cb115158741daa975ec95d2e10cace (diff)
downloadchromium_src-8e38341c65360b48c32b88c58d6ac490516c0c0c.zip
chromium_src-8e38341c65360b48c32b88c58d6ac490516c0c0c.tar.gz
chromium_src-8e38341c65360b48c32b88c58d6ac490516c0c0c.tar.bz2
FBTF: Even more ctor/virtual deinlining.
(Only 424k off Linux debug .a files). BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3859003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63059 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/mock_printer.cc')
-rw-r--r--chrome/renderer/mock_printer.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/renderer/mock_printer.cc b/chrome/renderer/mock_printer.cc
index b87523c..b579f88 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),