summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 17:41:23 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-25 17:41:23 +0000
commit35d484be8c276bb174ba82eaf7dc7f32e9f9c2c8 (patch)
tree7b17143997ca2cec31d71d1bf9b0fac96790b091 /skia
parent5168c72cdf678fe73cb6cca42330c9398355ed68 (diff)
downloadchromium_src-35d484be8c276bb174ba82eaf7dc7f32e9f9c2c8.zip
chromium_src-35d484be8c276bb174ba82eaf7dc7f32e9f9c2c8.tar.gz
chromium_src-35d484be8c276bb174ba82eaf7dc7f32e9f9c2c8.tar.bz2
Eliminate unused function.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6898028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82886 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/platform_canvas.cc7
-rw-r--r--skia/ext/platform_canvas.h3
2 files changed, 0 insertions, 10 deletions
diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc
index ac9c708..dfb40f7 100644
--- a/skia/ext/platform_canvas.cc
+++ b/skia/ext/platform_canvas.cc
@@ -51,13 +51,6 @@ SkCanvas* CreateBitmapCanvas(int width, int height, bool is_opaque) {
return new PlatformCanvas(width, height, is_opaque);
}
-void MakeOpaque(const SkIRect& region, SkCanvas* canvas) {
- BitmapPlatformDevice* device = static_cast<BitmapPlatformDevice*>(
- GetTopPlatformDevice(canvas));
- device->makeOpaque(region.fLeft, region.fTop,
- region.width(), region.height());
-}
-
bool SupportsPlatformPaint(const SkCanvas* canvas) {
// TODO(alokp): Rename PlatformDevice::IsNativeFontRenderingAllowed after
// removing these calls from WebKit.
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index b8f28a9..24f613a 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -119,9 +119,6 @@ class SK_API PlatformCanvas : public SkCanvas {
// transparency: this will enable some optimizations.
SK_API SkCanvas* CreateBitmapCanvas(int width, int height, bool is_opaque);
-// Sets the opacity of each pixel in the specified region to be opaque.
-SK_API void MakeOpaque(const SkIRect& region, SkCanvas* canvas);
-
// Returns true if native platform routines can be used to draw on the
// given canvas. If this function returns false, BeginPlatformPaint will
// return NULL PlatformSurface.