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

Unified Diff: skia/ext/platform_canvas.cc

Issue 2607603004: Remove PlatformCanvas::GetBitmapContext() (Closed)
Patch Set: Mac build fix Created 4 years 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 | « skia/ext/platform_canvas.h ('k') | skia/ext/platform_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas.cc
diff --git a/skia/ext/platform_canvas.cc b/skia/ext/platform_canvas.cc
index c19464d8baaf5ec127d1c9f7f20907f48b4df4c7..52a11c7b47ea03e92f20b882ba827b070e336b9a 100644
--- a/skia/ext/platform_canvas.cc
+++ b/skia/ext/platform_canvas.cc
@@ -88,18 +88,6 @@ void SetIsPreviewMetafile(const SkCanvas& canvas, bool is_preview) {
bool IsPreviewMetafile(const SkCanvas& canvas) {
return GetBoolMetaData(canvas, kIsPreviewMetafileKey);
}
-
-CGContextRef GetBitmapContext(const SkCanvas& canvas) {
- PlatformDevice* platform_device =
- GetPlatformDevice(canvas.getTopDevice(true));
- SkIRect clip_bounds;
- canvas.getClipDeviceBounds(&clip_bounds);
- return platform_device ?
- platform_device->GetBitmapContext(
- canvas.getTotalMatrix(), clip_bounds) :
- nullptr;
-}
-
#endif
ScopedPlatformPaint::ScopedPlatformPaint(SkCanvas* canvas) :
« no previous file with comments | « skia/ext/platform_canvas.h ('k') | skia/ext/platform_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698