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

Unified Diff: src/utils/SkDeferredCanvas.cpp

Issue 967553003: Add rewind capability to SkChunkAlloc (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix variable sizes/signs Created 5 years, 10 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
« no previous file with comments | « src/core/SkChunkAlloc.cpp ('k') | tests/MemsetTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkDeferredCanvas.cpp
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp
index 7da85327167b1d7823a681378051f4bd02579928..8fe9f8a4b59e5651fa3f057b42978fd9ef220fca 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 {
« no previous file with comments | « src/core/SkChunkAlloc.cpp ('k') | tests/MemsetTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698