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

Unified Diff: src/gpu/GrResourceCache2.h

Issue 705413002: Remove GrResourceKey from GrResourceCache (Closed) Base URL: https://skia.googlesource.com/skia.git@content
Patch Set: rebase Created 6 years, 1 month 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
Index: src/gpu/GrResourceCache2.h
diff --git a/src/gpu/GrResourceCache2.h b/src/gpu/GrResourceCache2.h
index 9424c40850a22bbf42c438e9544f45ceecf169cc..a797ad3bef8122c0564a70502e2e3c02160fcf85 100644
--- a/src/gpu/GrResourceCache2.h
+++ b/src/gpu/GrResourceCache2.h
@@ -29,13 +29,11 @@ public:
void removeResource(GrGpuResource*);
- void willRemoveContentKey(const GrGpuResource*);
-
// This currently returns a bool and fails when an existing resource has a key that collides
// with the new content key. In the future it will null out the content key for the existing
// resource. The failure is a temporary measure taken because duties are split between two
// cache objects currently.
- bool didAddContentKey(GrGpuResource*);
+ bool didSetContentKey(GrGpuResource*);
void abandonAll();
@@ -50,7 +48,7 @@ public:
GrGpuResource* findAndRefScratchResource(const GrResourceKey& scratchKey, uint32_t flags = 0);
#ifdef SK_DEBUG
- // This is not particularly fast and only used for validation, so debug only.
+ // Not particularly fast and only used for validation, so debug-only
int countScratchEntriesForKey(const GrResourceKey& scratchKey) const {
SkASSERT(scratchKey.isScratch());
return fScratchMap.countForKey(scratchKey);

Powered by Google App Engine
This is Rietveld 408576698