Index: src/core/SkFlattenable.cpp |
diff --git a/src/core/SkFlattenable.cpp b/src/core/SkFlattenable.cpp |
index 87e720e95f1b01008c85f332279295bf00add736..c759a1ab388951b1bb305b80ac283712ddcd111b 100644 |
--- a/src/core/SkFlattenable.cpp |
+++ b/src/core/SkFlattenable.cpp |
@@ -56,19 +56,12 @@ struct Entry { |
SkFlattenable::Type fType; |
}; |
-static int gCount; |
+static int gCount = 0; |
static Entry gEntries[MAX_ENTRY_COUNT]; |
void SkFlattenable::Register(const char name[], Factory factory, SkFlattenable::Type type) { |
SkASSERT(name); |
SkASSERT(factory); |
- |
- static bool gOnce = false; |
- if (!gOnce) { |
- gCount = 0; |
- gOnce = true; |
- } |
- |
SkASSERT(gCount < MAX_ENTRY_COUNT); |
gEntries[gCount].fName = name; |