SkPDF: use more vector<>, more sk_sp<>, cleanup.
All PDFs are identical.
Change-Id: If2af8519a6440a5b61f91bf78fc7ae241f728183
Reviewed-on: https://skia-review.googlesource.com/151220
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
diff --git a/src/utils/SkBitSet.h b/src/utils/SkBitSet.h
index 755e63b..ebbf4ff 100644
--- a/src/utils/SkBitSet.h
+++ b/src/utils/SkBitSet.h
@@ -8,9 +8,10 @@
#ifndef SkBitSet_DEFINED
#define SkBitSet_DEFINED
-#include "SkTDArray.h"
#include "SkTemplates.h"
+#include <vector>
+
class SkBitSet {
public:
explicit SkBitSet(int numberOfBits) {
@@ -45,7 +46,7 @@
/** Export indices of set bits to T array. */
template<typename T>
- void exportTo(SkTDArray<T>* array) const {
+ void exportTo(std::vector<T>* array) const {
static_assert(std::is_integral<T>::value, "T is integral");
SkASSERT(array);
uint32_t* data = reinterpret_cast<uint32_t*>(fBitData.get());