aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/utils
diff options
context:
space:
mode:
authorGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-20 22:10:33 +0000
committerGravatar junov@chromium.org <junov@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-20 22:10:33 +0000
commita38dfb6981379770221b16b5ec036b08f3005973 (patch)
tree432f8bf27ff8370c7d16a2116e78c249bca4d13b /include/utils
parentd2002d2a23a0e2341e51212f294c3558a2138c2b (diff)
Adding hasPendingCommands API method to SkDeferredCanvas
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/SkDeferredCanvas.h6
1 files changed, 6 insertions, 0 deletions
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
@@ -87,6 +87,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
* 64MB.