diff options
author | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-01 15:40:29 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-01 15:40:29 +0000 |
commit | f7d1f758a9f21fe3165a11552074bbed99b676cf (patch) | |
tree | 3bbae5bbd9bba97005b43affc7cfeb29251a4d63 /skia | |
parent | 0e50fc4dadb1575d3b7e1c05dd4b4b5d2085c3a9 (diff) | |
download | chromium_src-f7d1f758a9f21fe3165a11552074bbed99b676cf.zip chromium_src-f7d1f758a9f21fe3165a11552074bbed99b676cf.tar.gz chromium_src-f7d1f758a9f21fe3165a11552074bbed99b676cf.tar.bz2 |
Remove (now obsolete) IsNativeFontRendering api
Review URL: http://codereview.chromium.org/7482045
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r-- | skia/ext/platform_canvas.cc | 4 | ||||
-rw-r--r-- | skia/ext/platform_device_linux.cc | 4 | ||||
-rw-r--r-- | skia/ext/platform_device_linux.h | 3 | ||||
-rw-r--r-- | skia/ext/platform_device_mac.cc | 4 | ||||
-rw-r--r-- | skia/ext/platform_device_mac.h | 3 | ||||
-rw-r--r-- | skia/ext/platform_device_win.h | 3 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_skia.cc | 4 | ||||
-rw-r--r-- | skia/ext/vector_platform_device_skia.h | 3 |
8 files changed, 1 insertions, 27 deletions
diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc index df7ded6..3318bf8 100644 --- a/skia/ext/platform_canvas.cc +++ b/skia/ext/platform_canvas.cc @@ -40,10 +40,8 @@ SkDevice* GetTopDevice(const SkCanvas& canvas) { } bool SupportsPlatformPaint(const SkCanvas* canvas) { - // TODO(alokp): Rename IsNativeFontRenderingAllowed after removing these - // calls from WebKit. PlatformDevice* platform_device = GetPlatformDevice(GetTopDevice(*canvas)); - return platform_device && platform_device->IsNativeFontRenderingAllowed(); + return platform_device; } PlatformSurface BeginPlatformPaint(SkCanvas* canvas) { diff --git a/skia/ext/platform_device_linux.cc b/skia/ext/platform_device_linux.cc index f633758..e817703 100644 --- a/skia/ext/platform_device_linux.cc +++ b/skia/ext/platform_device_linux.cc @@ -11,10 +11,6 @@ PlatformDevice::PlatformDevice(const SkBitmap& bitmap) SetPlatformDevice(this, this); } -bool PlatformDevice::IsNativeFontRenderingAllowed() { - return true; -} - void PlatformDevice::EndPlatformPaint() { // We don't need to do anything on Linux here. } diff --git a/skia/ext/platform_device_linux.h b/skia/ext/platform_device_linux.h index 51c292f..3683b9b 100644 --- a/skia/ext/platform_device_linux.h +++ b/skia/ext/platform_device_linux.h @@ -16,9 +16,6 @@ class PlatformDevice : public SkDevice { public: typedef cairo_t* PlatformSurface; - // Returns if native platform APIs are allowed to render text to this device. - virtual bool IsNativeFontRenderingAllowed(); - virtual PlatformSurface BeginPlatformPaint() = 0; virtual void EndPlatformPaint(); diff --git a/skia/ext/platform_device_mac.cc b/skia/ext/platform_device_mac.cc index 9d2695f..4060f31 100644 --- a/skia/ext/platform_device_mac.cc +++ b/skia/ext/platform_device_mac.cc @@ -27,10 +27,6 @@ PlatformDevice::PlatformDevice(const SkBitmap& bitmap) SetPlatformDevice(this, this); } -bool PlatformDevice::IsNativeFontRenderingAllowed() { - return true; -} - CGContextRef PlatformDevice::BeginPlatformPaint() { return GetBitmapContext(); } diff --git a/skia/ext/platform_device_mac.h b/skia/ext/platform_device_mac.h index 9c7551d..53c2aae 100644 --- a/skia/ext/platform_device_mac.h +++ b/skia/ext/platform_device_mac.h @@ -47,9 +47,6 @@ class PlatformDevice : public SkDevice { // Sets the opacity of each pixel in the specified region to be opaque. virtual void MakeOpaque(int x, int y, int width, int height) { } - // Returns if native platform APIs are allowed to render text to this device. - virtual bool IsNativeFontRenderingAllowed(); - virtual PlatformSurface BeginPlatformPaint(); virtual void EndPlatformPaint(); diff --git a/skia/ext/platform_device_win.h b/skia/ext/platform_device_win.h index 57afa89..4b1e034a 100644 --- a/skia/ext/platform_device_win.h +++ b/skia/ext/platform_device_win.h @@ -49,9 +49,6 @@ class SK_API PlatformDevice : public SkDevice { // Sets the opacity of each pixel in the specified region to be opaque. virtual void MakeOpaque(int x, int y, int width, int height) { } - // Returns if GDI is allowed to render text to this device. - virtual bool IsNativeFontRenderingAllowed() { return true; } - // Loads a SkPath into the GDI context. The path can there after be used for // clipping or as a stroke. Returns false if the path failed to be loaded. static bool LoadPathToDC(HDC context, const SkPath& path); diff --git a/skia/ext/vector_platform_device_skia.cc b/skia/ext/vector_platform_device_skia.cc index dbc5843..107cd5c 100644 --- a/skia/ext/vector_platform_device_skia.cc +++ b/skia/ext/vector_platform_device_skia.cc @@ -27,10 +27,6 @@ VectorPlatformDeviceSkia::VectorPlatformDeviceSkia(SkPDFDevice* pdf_device) VectorPlatformDeviceSkia::~VectorPlatformDeviceSkia() { } -bool VectorPlatformDeviceSkia::IsNativeFontRenderingAllowed() { - return false; -} - PlatformDevice::PlatformSurface VectorPlatformDeviceSkia::BeginPlatformPaint() { // Even when drawing a vector representation of the page, we have to // provide a raster surface for plugins to render into - they don't have diff --git a/skia/ext/vector_platform_device_skia.h b/skia/ext/vector_platform_device_skia.h index 7aaa2a2..07adf51 100644 --- a/skia/ext/vector_platform_device_skia.h +++ b/skia/ext/vector_platform_device_skia.h @@ -29,9 +29,6 @@ class VectorPlatformDeviceSkia : public PlatformDevice { SkPDFDevice* PdfDevice() { return pdf_device_.get(); } - // PlatformDevice methods. - virtual bool IsNativeFontRenderingAllowed(); - virtual PlatformSurface BeginPlatformPaint(); virtual void EndPlatformPaint(); #if defined(OS_WIN) |