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

Unified Diff: skia/ext/platform_device.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/ext/platform_canvas.cc ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_device.h
diff --git a/skia/ext/platform_device.h b/skia/ext/platform_device.h
index 695c6b748ffc43f93d9236b7dbc55c8d5a205979..721893a8a056a327f958e93461826cd24ecec944 100644
--- a/skia/ext/platform_device.h
+++ b/skia/ext/platform_device.h
@@ -7,11 +7,6 @@
#include "build/build_config.h"
-#if defined(OS_WIN)
-#include <windows.h>
-#include <vector>
-#endif
-
#include "skia/ext/native_drawing_context.h"
#include "third_party/skia/include/core/SkBitmapDevice.h"
#include "third_party/skia/include/core/SkTypes.h"
@@ -50,22 +45,14 @@ SK_API PlatformDevice* GetPlatformDevice(SkBaseDevice* device);
// from it.
class SK_API PlatformDevice {
public:
- virtual ~PlatformDevice() {}
-
-#if defined(OS_MACOSX)
- // The CGContext that corresponds to the bitmap, used for CoreGraphics
- // operations drawing into the bitmap. This is possibly heavyweight, so it
- // should exist only during one pass of rendering.
- virtual CGContextRef GetBitmapContext(const SkMatrix& transform,
- const SkIRect& clip_bounds) = 0;
-#endif
+ virtual ~PlatformDevice();
private:
// The DC that corresponds to the bitmap, used for GDI operations drawing
// into the bitmap. This is possibly heavyweight, so it should be existant
// only during one pass of rendering.
virtual NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform,
- const SkIRect& clip_bounds);
+ const SkIRect& clip_bounds) = 0;
friend class ScopedPlatformPaint;
};
« no previous file with comments | « skia/ext/platform_canvas.cc ('k') | skia/ext/platform_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698