aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/ImageCacheTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ImageCacheTest.cpp')
-rw-r--r--tests/ImageCacheTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/ImageCacheTest.cpp b/tests/ImageCacheTest.cpp
index 9f893bb24c..eaf3f2811f 100644
--- a/tests/ImageCacheTest.cpp
+++ b/tests/ImageCacheTest.cpp
@@ -12,11 +12,10 @@
namespace {
static void* gGlobalAddress;
struct TestingKey : public SkResourceCache::Key {
- void* fPtr;
intptr_t fValue;
- TestingKey(intptr_t value) : fPtr(&gGlobalAddress), fValue(value) {
- this->init(sizeof(fPtr) + sizeof(fValue));
+ TestingKey(intptr_t value) : fValue(value) {
+ this->init(&gGlobalAddress, sizeof(fValue));
}
};
struct TestingRec : public SkResourceCache::Rec {