aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRecord.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/SkRecord.cpp')
-rw-r--r--src/core/SkRecord.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/SkRecord.cpp b/src/core/SkRecord.cpp
index 3d098c6c89..4df4131340 100644
--- a/src/core/SkRecord.cpp
+++ b/src/core/SkRecord.cpp
@@ -8,9 +8,6 @@
#include "SkRecord.h"
#include <algorithm>
-SkRecord::SkRecord()
- : fCount(0), fReserved(0), fAlloc(8/*first malloc at 256 bytes*/) {}
-
SkRecord::~SkRecord() {
Destroyer destroyer;
for (int i = 0; i < this->count(); i++) {
@@ -25,9 +22,8 @@ void SkRecord::grow() {
}
size_t SkRecord::bytesUsed() const {
- return sizeof(SkRecord)
- + fReserved * sizeof(Record)
- + fAlloc.approxBytesAllocated();
+ size_t bytes = fApproxBytesAllocated + sizeof(SkRecord);
+ return bytes;
}
void SkRecord::defrag() {