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

Unified Diff: skia/ext/bitmap_platform_device_mac.h

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/BUILD.gn ('k') | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_mac.h
diff --git a/skia/ext/bitmap_platform_device_mac.h b/skia/ext/bitmap_platform_device_mac.h
index 0f8ddf8adcd8a9354fab27d222e421cd41327d7d..10dce7fefac81d4e38c6c2c765d146d6d14d1e0e 100644
--- a/skia/ext/bitmap_platform_device_mac.h
+++ b/skia/ext/bitmap_platform_device_mac.h
@@ -46,10 +46,6 @@ class SK_API BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice
~BitmapPlatformDevice() override;
- // PlatformDevice overrides
- CGContextRef GetBitmapContext(const SkMatrix& transform,
- const SkIRect& clip_bounds) override;
-
protected:
BitmapPlatformDevice(CGContextRef context,
const SkBitmap& bitmap);
@@ -57,6 +53,9 @@ class SK_API BitmapPlatformDevice : public SkBitmapDevice, public PlatformDevice
SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
private:
+ NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform,
+ const SkIRect& clip_bounds) override;
+
void ReleaseBitmapContext();
// Loads the current transform and clip into the context. Can be called even
« no previous file with comments | « skia/BUILD.gn ('k') | skia/ext/bitmap_platform_device_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698