diff options
author | 2015-02-27 08:31:57 -0800 | |
---|---|---|
committer | 2015-02-27 08:31:57 -0800 | |
commit | a9061de9ff8d5b9545e5d1ef7a6e4054e1907c95 (patch) | |
tree | b21a2c3d0088938a9e50a8a4b433b403e4d795c2 /src/utils/SkDeferredCanvas.cpp | |
parent | 827da23c71310408b2854516af5e2a8910bf700e (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.cpp | 2 |
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 { |