diff options
-rw-r--r-- | skia/ext/platform_canvas.cc | 7 | ||||
-rw-r--r-- | skia/ext/platform_canvas.h | 3 |
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. |