commit | 62f2e80c79f7d660d7871b14287cef9082fcc32f | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Thu May 26 14:28:35 2011 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Thu May 26 14:28:35 2011 |
tree | 310edb9b2c0aa8409defc654979719cb4d8a4059 | |
parent | c89b244483969aa8859a1d4bb3396f6ceb54f875 [diff] [blame] |
This change implements a first pass in the effort to remove the dependency of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86823 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc index 80d49313..f76eb704 100644 --- a/printing/pdf_metafile_skia.cc +++ b/printing/pdf_metafile_skia.cc
@@ -36,7 +36,7 @@ return data_->pdf_stream_.write(src_buffer, src_buffer_size); } -skia::PlatformDevice* PdfMetafileSkia::StartPageForVectorCanvas( +SkDevice* PdfMetafileSkia::StartPageForVectorCanvas( const gfx::Size& page_size, const gfx::Rect& content_area, const float& scale_factor) { DCHECK(data_->current_page_.get() == NULL);