Index: src/core/SkRecordDraw.cpp |
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp |
index c693b05c63e10db94c53f362e281f49762da1e23..13b06b5efc416ec00f14574c6ebe79d33f28c95f 100644 |
--- a/src/core/SkRecordDraw.cpp |
+++ b/src/core/SkRecordDraw.cpp |
@@ -23,7 +23,7 @@ void SkRecordDraw(const SkRecord& record, |
SkRect query = { 0, 0, 0, 0 }; |
(void)canvas->getClipBounds(&query); |
- SkTDArray<void*> ops; |
+ SkTDArray<unsigned> ops; |
bbh->search(query, &ops); |
SkRecords::Draw draw(canvas); |
@@ -31,7 +31,7 @@ void SkRecordDraw(const SkRecord& record, |
if (callback && callback->abortDrawing()) { |
return; |
} |
- record.visit<void>((uintptr_t)ops[i], draw); // See FillBounds below. |
+ record.visit<void>(ops[i], draw); |
} |
} else { |
// Draw all ops. |
@@ -156,9 +156,9 @@ public: |
// Finally feed all stored bounds into the BBH. They'll be returned in this order. |
SkASSERT(bbh); |
- for (uintptr_t i = 0; i < record.count(); i++) { |
+ for (unsigned i = 0; i < record.count(); i++) { |
if (!fBounds[i].isEmpty()) { |
- bbh->insert((void*)i, fBounds[i], true/*ok to defer*/); |
+ bbh->insert(i, fBounds[i], true/*ok to defer*/); |
} |
} |
bbh->flushDeferredInserts(); |