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

Unified Diff: bench/ImageCacheBench.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 | « no previous file | src/core/SkBitmapCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | src/core/SkBitmapCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698