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

Unified Diff: tests/ImageCacheTest.cpp

Issue 668223002: SkResourceCache::Key namespace support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: unused SkPictureShader headers Created 6 years, 2 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
« no previous file with comments | « src/core/SkResourceCache.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/ImageCacheTest.cpp
diff --git a/tests/ImageCacheTest.cpp b/tests/ImageCacheTest.cpp
index 9f893bb24c48c6b06024497961475bd8d8e31059..eaf3f2811fdf7ee56cc9e9ade2f243826c6c6761 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 {
« no previous file with comments | « src/core/SkResourceCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698