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

Unified Diff: skia/ext/platform_canvas.h

Issue 2612863002: Make skia::GetNativeDrawingContext Windows-only (Closed)
Patch Set: more guarding Created 3 years, 11 months 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/bitmap_platform_device_win.cc ('k') | skia/ext/platform_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index f877716b3106c707813aba1765b7b5b60094108c..1436ec1fef6a7cdd08ca3802b6f91e2a1d85805e 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -61,6 +61,10 @@ SK_API void DrawToNativeContext(SkCanvas* canvas,
int x,
int y,
const RECT* src_rect);
+
+// Returns the NativeDrawingContext to use for native platform drawing calls.
+SK_API HDC GetNativeDrawingContext(SkCanvas* canvas);
+
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__sun) || defined(ANDROID) || defined(__APPLE__)
// Construct a canvas from the given memory region. The memory is not cleared
@@ -121,9 +125,6 @@ SK_API SkBitmap ReadPixels(SkCanvas* canvas);
// the pixmap to empty.
SK_API bool GetWritablePixels(SkCanvas* canvas, SkPixmap* pixmap);
-// Returns the NativeDrawingContext to use for native platform drawing calls.
-SK_API NativeDrawingContext GetNativeDrawingContext(SkCanvas* canvas);
-
// Following routines are used in print preview workflow to mark the
// preview metafile.
SK_API SkMetaData& GetMetaData(const SkCanvas& canvas);
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/platform_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698