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

Unified Diff: src/core/SkTDynamicHash.h

Issue 184443003: Add Gpu Tracing to Ganesh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Partial version Created 6 years, 9 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
Index: src/core/SkTDynamicHash.h
diff --git a/src/core/SkTDynamicHash.h b/src/core/SkTDynamicHash.h
index 80570ae0acb9b4d86f373ad85230da63e571b09e..a4da87633f81bb57fee58cd6bb0e37542e87a9a3 100644
--- a/src/core/SkTDynamicHash.h
+++ b/src/core/SkTDynamicHash.h
@@ -24,6 +24,16 @@ public:
SkASSERT(this->validate());
}
+ SkTDynamicHash(const SkTDynamicHash& other) {
+ fCount = other.fCount;
+ fDeleted = other.fDeleted;
+ fCapacity = other.fCapacity;
+ fArray = (T**)sk_calloc_throw(sizeof(T*) * fCapacity);
+ for (int i = 0; i < fCapacity; ++i) {
+ fArray[i] = other.fArray[i];
+ }
+ }
+
~SkTDynamicHash() {
sk_free(fArray);
}

Powered by Google App Engine
This is Rietveld 408576698