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

Side by Side Diff: printing/pdf_metafile_skia.h

Issue 22796028: Updating Chromium to Skia SkBaseDevice/SkBitmapDevice split (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs Created 7 years, 3 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_metafile_cg_mac.cc ('k') | printing/pdf_metafile_skia.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef PRINTING_PDF_METAFILE_SKIA_H_ 5 #ifndef PRINTING_PDF_METAFILE_SKIA_H_
6 #define PRINTING_PDF_METAFILE_SKIA_H_ 6 #define PRINTING_PDF_METAFILE_SKIA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 12 matching lines...) Expand all
23 class PRINTING_EXPORT PdfMetafileSkia : public Metafile { 23 class PRINTING_EXPORT PdfMetafileSkia : public Metafile {
24 public: 24 public:
25 PdfMetafileSkia(); 25 PdfMetafileSkia();
26 virtual ~PdfMetafileSkia(); 26 virtual ~PdfMetafileSkia();
27 27
28 // Metafile methods. 28 // Metafile methods.
29 virtual bool Init() OVERRIDE; 29 virtual bool Init() OVERRIDE;
30 virtual bool InitFromData(const void* src_buffer, 30 virtual bool InitFromData(const void* src_buffer,
31 uint32 src_buffer_size) OVERRIDE; 31 uint32 src_buffer_size) OVERRIDE;
32 32
33 virtual SkDevice* StartPageForVectorCanvas( 33 virtual SkBaseDevice* StartPageForVectorCanvas(
34 const gfx::Size& page_size, 34 const gfx::Size& page_size,
35 const gfx::Rect& content_area, 35 const gfx::Rect& content_area,
36 const float& scale_factor) OVERRIDE; 36 const float& scale_factor) OVERRIDE;
37 37
38 virtual bool StartPage(const gfx::Size& page_size, 38 virtual bool StartPage(const gfx::Size& page_size,
39 const gfx::Rect& content_area, 39 const gfx::Rect& content_area,
40 const float& scale_factor) OVERRIDE; 40 const float& scale_factor) OVERRIDE;
41 virtual bool FinishPage() OVERRIDE; 41 virtual bool FinishPage() OVERRIDE;
42 virtual bool FinishDocument() OVERRIDE; 42 virtual bool FinishDocument() OVERRIDE;
43 43
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // True when finish page is outstanding for current page. 76 // True when finish page is outstanding for current page.
77 bool page_outstanding_; 77 bool page_outstanding_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia); 79 DISALLOW_COPY_AND_ASSIGN(PdfMetafileSkia);
80 }; 80 };
81 81
82 } // namespace printing 82 } // namespace printing
83 83
84 #endif // PRINTING_PDF_METAFILE_SKIA_H_ 84 #endif // PRINTING_PDF_METAFILE_SKIA_H_
OLDNEW
« no previous file with comments | « printing/pdf_metafile_cg_mac.cc ('k') | printing/pdf_metafile_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698