diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 23:15:06 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-04 23:15:06 +0000 |
commit | 9b61753963f16cc6cf48f388a2c24e064add4cbb (patch) | |
tree | 6fbae6593eb9465c320a5f35ebdaa24612818bb0 /webkit/plugins | |
parent | 22796b1a1791a0d1e84bf2d0eeba82d08d0687c1 (diff) | |
download | chromium_src-9b61753963f16cc6cf48f388a2c24e064add4cbb.zip chromium_src-9b61753963f16cc6cf48f388a2c24e064add4cbb.tar.gz chromium_src-9b61753963f16cc6cf48f388a2c24e064add4cbb.tar.bz2 |
Rename some printing classes and minor cleanups.
Rename:
PdfPsMetafile -> PdfMetafileCairo
PdfMetafile -> PdfMetafileCg (Mac)
VectorPlatformDevice -> VectorPlatformDeviceEmf/Cairo (Windows/Linux varients)
This is in preparation for VectorPlatformDeviceSkia.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6783036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80390 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins')
-rw-r--r-- | webkit/plugins/ppapi/ppapi_plugin_instance.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/plugins/ppapi/ppapi_plugin_instance.cc b/webkit/plugins/ppapi/ppapi_plugin_instance.cc index dda0165..b8fd69b 100644 --- a/webkit/plugins/ppapi/ppapi_plugin_instance.cc +++ b/webkit/plugins/ppapi/ppapi_plugin_instance.cc @@ -26,7 +26,6 @@ #include "ppapi/c/ppb_instance.h" #include "ppapi/c/ppp_instance.h" #include "printing/units.h" -#include "skia/ext/vector_platform_device.h" #include "skia/ext/platform_canvas.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebBindings.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" @@ -75,6 +74,7 @@ #endif #if defined(OS_WIN) +#include "skia/ext/vector_platform_device_emf_win.h" #include "ui/gfx/codec/jpeg_codec.h" #include "ui/gfx/gdi_util.h" #endif @@ -1231,8 +1231,8 @@ bool PluginInstance::PrintPDFOutput(PP_Resource print_output, #elif defined(OS_WIN) // On Windows, we now need to render the PDF to the DC that backs the // supplied canvas. - skia::VectorPlatformDevice& device = - static_cast<skia::VectorPlatformDevice&>( + skia::VectorPlatformDeviceEmf& device = + static_cast<skia::VectorPlatformDeviceEmf&>( canvas->getTopPlatformDevice()); HDC dc = device.getBitmapDC(); gfx::Size size_in_pixels; @@ -1322,8 +1322,8 @@ bool PluginInstance::DrawJPEGToPlatformDC( const SkBitmap& bitmap, const gfx::Rect& printable_area, WebKit::WebCanvas* canvas) { - skia::VectorPlatformDevice& device = - static_cast<skia::VectorPlatformDevice&>( + skia::VectorPlatformDeviceEmf& device = + static_cast<skia::VectorPlatformDeviceEmf&>( canvas->getTopPlatformDevice()); HDC dc = device.getBitmapDC(); // TODO(sanjeevr): This is a temporary hack. If we output a JPEG |