From a38dfb6981379770221b16b5ec036b08f3005973 Mon Sep 17 00:00:00 2001 From: "junov@chromium.org" Date: Thu, 20 Sep 2012 22:10:33 +0000 Subject: Adding hasPendingCommands API method to SkDeferredCanvas BUG=http://code.google.com/p/chromium/issues/detail?id=146178 Review URL: https://codereview.appspot.com/6550050 git-svn-id: http://skia.googlecode.com/svn/trunk@5632 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/utils/SkDeferredCanvas.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/utils') diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h index f3005b322b..f5674d1d45 100644 --- a/include/utils/SkDeferredCanvas.h +++ b/include/utils/SkDeferredCanvas.h @@ -86,6 +86,12 @@ public: */ bool isFreshFrame() const; + /** + * Returns true if the canvas has recorded draw commands that have + * not yet been played back. + */ + bool hasPendingCommands() const; + /** * Specify the maximum number of bytes to be allocated for the purpose * of recording draw commands to this canvas. The default limit, is -- cgit v1.2.3