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

Unified Diff: chrome/renderer/print_web_view_helper.cc

Issue 7633040: CL removing inheritance of SkDevice from PlatformDevice. Flavours of PlatformDevice classes now ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Port to Linux. Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | printing/pdf_metafile_skia.cc » ('j') | skia/ext/bitmap_platform_device_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/print_web_view_helper.cc
===================================================================
--- chrome/renderer/print_web_view_helper.cc (revision 97366)
+++ chrome/renderer/print_web_view_helper.cc (working copy)
@@ -39,8 +39,8 @@
#if defined(USE_SKIA)
#include "base/string_number_conversions.h"
#include "skia/ext/vector_canvas.h"
-#include "skia/ext/vector_platform_device_skia.h"
#include "third_party/skia/include/core/SkTypeface.h"
+#include "third_party/skia/include/pdf/SkPDFDevice.h"
#endif // defined(USE_SKIA)
using base::Time;
@@ -190,7 +190,7 @@
float webkit_scale_factor,
const PageSizeMargins& page_layout,
const DictionaryValue& header_footer_info) {
- static_cast<skia::VectorPlatformDeviceSkia*>(device)->setDrawingArea(
+ static_cast<SkPDFDevice*>(device)->setDrawingArea(
SkPDFDevice::kMargin_DrawingArea);
SkPaint paint;
@@ -251,7 +251,7 @@
footer_bounds.bottom());
}
- static_cast<skia::VectorPlatformDeviceSkia*>(device)->setDrawingArea(
+ static_cast<SkPDFDevice*>(device)->setDrawingArea(
SkPDFDevice::kContent_DrawingArea);
}
#endif // defined(USE_SKIA)
« no previous file with comments | « no previous file | printing/pdf_metafile_skia.cc » ('j') | skia/ext/bitmap_platform_device_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698