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

Unified Diff: include/gpu/GrGpuResource.h

Issue 815833004: Add a simpler key type for scratch resource keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 6 years 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: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 338e161ac3864c96018baf3b6208018fb9eb490b..8c888410bfb82da4a3d12a62a7d2208b7c034bfa 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -228,7 +228,7 @@ protected:
* Optionally called by the GrGpuResource subclass if the resource can be used as scratch.
* By default resources are not usable as scratch. This should only be called once.
**/
- void setScratchKey(const GrResourceKey& scratchKey);
+ void setScratchKey(const GrScratchKey& scratchKey);
private:
/**
@@ -274,9 +274,8 @@ private:
kContentKeySet_Flag = 0x4,
};
- // TODO(bsalomon): Remove GrResourceKey and use different simpler types for content and scratch
- // keys.
- GrResourceKey fScratchKey;
+ GrScratchKey fScratchKey;
+ // TODO(bsalomon): Remove GrResourceKey and use different simpler type for content keys.
GrResourceKey fContentKey;
// This is not ref'ed but abandon() or release() will be called before the GrGpu object

Powered by Google App Engine
This is Rietveld 408576698