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

Unified Diff: skia/ext/platform_canvas.cc

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/platform_canvas.h ('k') | skia/ext/platform_canvas_unittest.cc » ('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 eb954969eb09315f181dcff5f30e7a37d995bab4..81f8ff584128b37cba10e57cfa20b9a74049675b 100644
--- a/skia/ext/platform_canvas.cc
+++ b/skia/ext/platform_canvas.cc
@@ -86,17 +86,4 @@ bool IsPreviewMetafile(const SkCanvas& canvas) {
}
#endif
-NativeDrawingContext GetNativeDrawingContext(SkCanvas* canvas) {
- PlatformDevice* platform_device = GetPlatformDevice(canvas->getTopDevice(true));
- if (!platform_device)
- return nullptr;
-
- // Compensate for drawing to a layer rather than the entire canvas
- SkMatrix ctm;
- SkIRect clip_bounds;
- canvas->temporary_internal_describeTopLayer(&ctm, &clip_bounds);
-
- return platform_device->BeginPlatformPaint(ctm, clip_bounds);
-}
-
} // namespace skia
« no previous file with comments | « skia/ext/platform_canvas.h ('k') | skia/ext/platform_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698