aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkDeferredCanvas.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-02-27 08:31:57 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-27 08:31:57 -0800
commita9061de9ff8d5b9545e5d1ef7a6e4054e1907c95 (patch)
treeb21a2c3d0088938a9e50a8a4b433b403e4d795c2 /src/utils/SkDeferredCanvas.cpp
parent827da23c71310408b2854516af5e2a8910bf700e (diff)
Add rewind capability to SkChunkAlloc
Split off from https://codereview.chromium.org/940533003/ (Decrease GrInOrderDrawBuffer::Cmd's reliance on GrInOrderDrawBuffer) Review URL: https://codereview.chromium.org/967553003
Diffstat (limited to 'src/utils/SkDeferredCanvas.cpp')
-rw-r--r--src/utils/SkDeferredCanvas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index 7da8532716..8fe9f8a4b5 100644
--- a/src/utils/SkDeferredCanvas.cpp
+++ b/src/utils/SkDeferredCanvas.cpp
@@ -68,7 +68,7 @@ public:
void* requestBlock(size_t minRequest, size_t* actual) SK_OVERRIDE;
void notifyWritten(size_t bytes) SK_OVERRIDE;
void playback(bool silent);
- bool hasPendingCommands() const { return fAllocator.blockCount() != 0; }
+ bool hasPendingCommands() const { return fAllocator.totalUsed() != 0; }
size_t storageAllocatedForRecording() const { return fAllocator.totalCapacity(); }
private:
enum {