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

Unified Diff: skia/ext/platform_canvas.h

Issue 2613583002: Remove skia::ScopedPlatformPaint (Closed)
Patch Set: Created 3 years, 12 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 4a9692f1a5da1c8b3bc13f4dac42b00f26fd272f..ef657837d050da819918ed08394796de9178a274 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -123,29 +123,11 @@ SK_API bool GetWritablePixels(SkCanvas* canvas, SkPixmap* pixmap);
// Returns true if native platform routines can be used to draw on the
// given canvas. If this function returns false,
-// ScopedPlatformPaint::GetNativeDrawingContext() should return NULL.
+// GetNativeDrawingContext() should return NULL.
SK_API bool SupportsPlatformPaint(const SkCanvas* canvas);
-// This object guards calls to platform drawing routines. The surface
-// returned from GetNativeDrawingContext() can be used with the native platform
-// routines.
-class SK_API ScopedPlatformPaint {
- public:
- explicit ScopedPlatformPaint(SkCanvas* canvas);
-
- // Returns the NativeDrawingContext to use for native platform drawing calls.
- NativeDrawingContext GetNativeDrawingContext() {
- return native_drawing_context_;
- }
-
- private:
- SkCanvas* canvas_;
- NativeDrawingContext native_drawing_context_;
-
- // Disallow copy and assign
- ScopedPlatformPaint(const ScopedPlatformPaint&);
- ScopedPlatformPaint& operator=(const ScopedPlatformPaint&);
-};
+// 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.
« 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