summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 17:55:32 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 17:55:32 +0000
commitc5406e5c864f90639a7154479559bf6c6c43e0cc (patch)
tree83d855a18106d65a117b72400fa6e413f24b818f /printing
parentb714b8c580cd67b647b339eae3bda6ec598addae (diff)
downloadchromium_src-c5406e5c864f90639a7154479559bf6c6c43e0cc.zip
chromium_src-c5406e5c864f90639a7154479559bf6c6c43e0cc.tar.gz
chromium_src-c5406e5c864f90639a7154479559bf6c6c43e0cc.tar.bz2
FBTF: New IPC definitions, only applied to async ROUTED and CONTROL messages.
The slowest cc files in chrome include render_messages.h and other IPC message definitions. Including one of these files will bring in half of chrome because in the IPC system previously required full class definitions due to implementation details. The new system allows forward declarations and places the implementations of functions that need the full class definitions (ctor/dtor()/Log() and superclass ctor/Read() methods) into a separate xxx_messages.cc file using a parallel set of macros to ipc_message_macros.h. This has the added benefit of moving most of the template instantiation junk into a small number of files. Pros: - Will speed up compiling by a lot once everything is forward declared. - Already, intermediary .o/.a files are smaller. Cons: - Adds a 4th pass to the messages system, this time in a different header. BUG=51411 TEST=none Review URL: http://codereview.chromium.org/2873090 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r--printing/pdf_ps_metafile_cairo.cc5
-rw-r--r--printing/pdf_ps_metafile_cairo.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/printing/pdf_ps_metafile_cairo.cc b/printing/pdf_ps_metafile_cairo.cc
index 47f4c14..798ee16 100644
--- a/printing/pdf_ps_metafile_cairo.cc
+++ b/printing/pdf_ps_metafile_cairo.cc
@@ -70,6 +70,11 @@ void DestroyContextData(void* data) {
namespace printing {
+PdfPsMetafile::PdfPsMetafile()
+ : format_(PDF),
+ surface_(NULL), context_(NULL) {
+}
+
PdfPsMetafile::PdfPsMetafile(const FileFormat& format)
: format_(format),
surface_(NULL), context_(NULL) {
diff --git a/printing/pdf_ps_metafile_cairo.h b/printing/pdf_ps_metafile_cairo.h
index 7a7b470..e56b64c 100644
--- a/printing/pdf_ps_metafile_cairo.h
+++ b/printing/pdf_ps_metafile_cairo.h
@@ -29,6 +29,8 @@ class PdfPsMetafile {
PS,
};
+ PdfPsMetafile();
+
// In the renderer process, callers should also call Init(void) to see if the
// metafile can obtain all necessary rendering resources.
// In the browser process, callers should also call Init(const void*, uint32)