summaryrefslogtreecommitdiffstats
path: root/printing
diff options
context:
space:
mode:
authorvitalybuka <vitalybuka@chromium.org>2015-02-06 10:40:37 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-06 18:41:00 +0000
commita73fc377cdadc6a183cdc453b7d49dfbdaf9d1da (patch)
tree9c30b634533a507f1879c421eefa0c015ad6f0bd /printing
parent0071593ba01666da9efa6a74c956a4e9de24f1e2 (diff)
downloadchromium_src-a73fc377cdadc6a183cdc453b7d49dfbdaf9d1da.zip
chromium_src-a73fc377cdadc6a183cdc453b7d49dfbdaf9d1da.tar.gz
chromium_src-a73fc377cdadc6a183cdc453b7d49dfbdaf9d1da.tar.bz2
Removed unused code in skia/ext/vector_*.
Code is not used after we Chrome stopped generation of EMF inside render. Review URL: https://codereview.chromium.org/900683004 Cr-Commit-Position: refs/heads/master@{#315076}
Diffstat (limited to 'printing')
-rw-r--r--printing/emf_win.cc2
-rw-r--r--printing/pdf_metafile_skia.cc3
-rw-r--r--printing/pdf_metafile_skia.h12
3 files changed, 8 insertions, 9 deletions
diff --git a/printing/emf_win.cc b/printing/emf_win.cc
index 55b8786..030d520 100644
--- a/printing/emf_win.cc
+++ b/printing/emf_win.cc
@@ -11,7 +11,7 @@
#include "base/win/scoped_gdi_object.h"
#include "base/win/scoped_hdc.h"
#include "base/win/scoped_select_object.h"
-#include "skia/ext/vector_platform_device_emf_win.h"
+#include "skia/ext/platform_device.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/jpeg_codec.h"
#include "ui/gfx/codec/png_codec.h"
diff --git a/printing/pdf_metafile_skia.cc b/printing/pdf_metafile_skia.cc
index ae402ab..ef8e375 100644
--- a/printing/pdf_metafile_skia.cc
+++ b/printing/pdf_metafile_skia.cc
@@ -10,7 +10,6 @@
#include "base/numerics/safe_conversions.h"
#include "base/posix/eintr_wrapper.h"
#include "skia/ext/refptr.h"
-#include "skia/ext/vector_canvas.h"
#include "third_party/skia/include/core/SkData.h"
#include "third_party/skia/include/core/SkDocument.h"
#include "third_party/skia/include/core/SkPictureRecorder.h"
@@ -104,7 +103,7 @@ bool PdfMetafileSkia::StartPage(const gfx::Size& page_size,
return true;
}
-skia::VectorCanvas* PdfMetafileSkia::GetVectorCanvasForNewPage(
+skia::PlatformCanvas* PdfMetafileSkia::GetVectorCanvasForNewPage(
const gfx::Size& page_size,
const gfx::Rect& content_area,
const float& scale_factor) {
diff --git a/printing/pdf_metafile_skia.h b/printing/pdf_metafile_skia.h
index 58e928b..edd12db 100644
--- a/printing/pdf_metafile_skia.h
+++ b/printing/pdf_metafile_skia.h
@@ -10,7 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
#include "printing/metafile.h"
-#include "skia/ext/vector_canvas.h"
+#include "skia/ext/platform_canvas.h"
#if defined(OS_WIN)
#include <windows.h>
@@ -74,14 +74,14 @@ class PRINTING_EXPORT PdfMetafileSkia : public Metafile {
scoped_ptr<PdfMetafileSkia> GetMetafileForCurrentPage();
// This method calls StartPage and then returns an appropriate
- // VectorCanvas implementation bound to the context created by
- // StartPage or NULL on error. The skia::VectorCanvas pointer that
+ // PlatformCanvas implementation bound to the context created by
+ // StartPage or NULL on error. The skia::PlatformCanvas pointer that
// is returned is owned by this PdfMetafileSkia object and does not
// need to be ref()ed or unref()ed. The canvas will remain valid
// until FinishPage() or FinishDocument() is called.
- skia::VectorCanvas* GetVectorCanvasForNewPage(const gfx::Size& page_size,
- const gfx::Rect& content_area,
- const float& scale_factor);
+ skia::PlatformCanvas* GetVectorCanvasForNewPage(const gfx::Size& page_size,
+ const gfx::Rect& content_area,
+ const float& scale_factor);
private:
scoped_ptr<PdfMetafileSkiaData> data_;