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

Side by Side Diff: printing/pdf_ps_metafile_cairo.cc

Issue 3170020: Completely revert all my IPC work to see if this was what regressed the page cycler. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 years, 4 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 unified diff | Download patch
« no previous file with comments | « printing/pdf_ps_metafile_cairo.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "printing/pdf_ps_metafile_cairo.h" 5 #include "printing/pdf_ps_metafile_cairo.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include <cairo.h> 9 #include <cairo.h>
10 #include <cairo-pdf.h> 10 #include <cairo-pdf.h>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 64
65 void DestroyContextData(void* data) { 65 void DestroyContextData(void* data) {
66 // Nothing to be done here. 66 // Nothing to be done here.
67 } 67 }
68 68
69 } // namespace 69 } // namespace
70 70
71 namespace printing { 71 namespace printing {
72 72
73 PdfPsMetafile::PdfPsMetafile()
74 : format_(PDF),
75 surface_(NULL), context_(NULL) {
76 }
77
78 PdfPsMetafile::PdfPsMetafile(const FileFormat& format) 73 PdfPsMetafile::PdfPsMetafile(const FileFormat& format)
79 : format_(format), 74 : format_(format),
80 surface_(NULL), context_(NULL) { 75 surface_(NULL), context_(NULL) {
81 } 76 }
82 77
83 PdfPsMetafile::~PdfPsMetafile() { 78 PdfPsMetafile::~PdfPsMetafile() {
84 // Releases all resources if we forgot to do so. 79 // Releases all resources if we forgot to do so.
85 CleanUpAll(); 80 CleanUpAll();
86 } 81 }
87 82
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 data_.clear(); 284 data_.clear();
290 skia::VectorPlatformDevice::ClearFontCache(); 285 skia::VectorPlatformDevice::ClearFontCache();
291 } 286 }
292 287
293 const double PdfPsMetafile::kTopMarginInInch = 0.25; 288 const double PdfPsMetafile::kTopMarginInInch = 0.25;
294 const double PdfPsMetafile::kBottomMarginInInch = 0.56; 289 const double PdfPsMetafile::kBottomMarginInInch = 0.56;
295 const double PdfPsMetafile::kLeftMarginInInch = 0.25; 290 const double PdfPsMetafile::kLeftMarginInInch = 0.25;
296 const double PdfPsMetafile::kRightMarginInInch = 0.25; 291 const double PdfPsMetafile::kRightMarginInInch = 0.25;
297 292
298 } // namespace printing 293 } // namespace printing
OLDNEW
« no previous file with comments | « printing/pdf_ps_metafile_cairo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698