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

Unified Diff: skia/ext/platform_canvas.h

Issue 10915065: Add PlatformPictureSkia and RecordingPlatformDeviceSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style changes and move skia include to .cpp file. Created 8 years, 3 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
Index: skia/ext/platform_canvas.h
diff --git a/skia/ext/platform_canvas.h b/skia/ext/platform_canvas.h
index cbeb95b2bbe252cf5c5ebc7bd3abeeb3ad29dcf8..5424da4186a278319fa24d1790f43287834842ab 100644
--- a/skia/ext/platform_canvas.h
+++ b/skia/ext/platform_canvas.h
@@ -120,6 +120,10 @@ SK_API SkCanvas* TryCreateBitmapCanvas(int width, int height, bool is_opaque);
// return NULL PlatformSurface.
SK_API bool SupportsPlatformPaint(const SkCanvas* canvas);
+// Returns true if native platform routines can be used to draw on the
+// given canvas without any indirect rendering taking place.
alokp 2012/09/17 16:29:30 I am not quite clear on the differences between th
reed1 2012/09/17 16:51:24 +1 -- not sure the diff between these two function
reveman 2012/09/17 21:22:16 Sure, does updating the comment to the following m
nduca 2012/09/18 09:54:24 Done.
nduca 2012/09/18 09:54:24 Would a better tweak for this be to change Support
reveman 2012/09/18 17:56:15 I left this as SupportsPlatformPaint/SupportsDirec
+SK_API bool SupportsDirectPlatformPaint(const SkCanvas* canvas);
+
// Draws into the a native platform surface, |context|. Forwards to
// DrawToNativeContext on a PlatformDevice instance bound to the top device.
// If no PlatformDevice instance is bound, is a no-operation.

Powered by Google App Engine
This is Rietveld 408576698