Index: bench/ImageCacheBench.cpp |
diff --git a/bench/ImageCacheBench.cpp b/bench/ImageCacheBench.cpp |
index 0f8fdf27089916b0df25d0aa49a0f60078b3fd39..b8f40c87fc08d7e56fbe70d3385e08e17fa8c1c3 100644 |
--- a/bench/ImageCacheBench.cpp |
+++ b/bench/ImageCacheBench.cpp |
@@ -12,11 +12,10 @@ namespace { |
static void* gGlobalAddress; |
class TestKey : public SkResourceCache::Key { |
public: |
- void* fPtr; |
intptr_t fValue; |
- TestKey(intptr_t value) : fPtr(&gGlobalAddress), fValue(value) { |
- this->init(sizeof(fPtr) + sizeof(fValue)); |
+ TestKey(intptr_t value) : fValue(value) { |
+ this->init(&gGlobalAddress, sizeof(fValue)); |
} |
}; |
struct TestRec : public SkResourceCache::Rec { |