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

Unified Diff: include/gpu/GrContext.h

Issue 414013005: Merge GrGpuObject and GrCacheable. (Closed) Base URL: https://skia.googlesource.com/skia.git@uniqueid
Patch Set: Address comments Created 6 years, 5 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 | « include/gpu/GrCacheable.h ('k') | include/gpu/GrGpuObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 92fa881f7b3d9437d56aa038bb542d25e3373fdb..a379f80be0f7ca57baa1f2694e82e115b718e284 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -20,7 +20,6 @@
class GrAARectRenderer;
class GrAutoScratchTexture;
-class GrCacheable;
class GrDrawState;
class GrDrawTarget;
class GrEffect;
@@ -186,14 +185,14 @@ public:
/**
* Stores a custom resource in the cache, based on the specified key.
*/
- void addResourceToCache(const GrResourceKey&, GrCacheable*);
+ void addResourceToCache(const GrResourceKey&, GrGpuObject*);
/**
* Finds a resource in the cache, based on the specified key. This is intended for use in
* conjunction with addResourceToCache(). The return value will be NULL if not found. The
* caller must balance with a call to unref().
*/
- GrCacheable* findAndRefCachedResource(const GrResourceKey&);
+ GrGpuObject* findAndRefCachedResource(const GrResourceKey&);
/**
* Creates a new text rendering context that is optimal for the
« no previous file with comments | « include/gpu/GrCacheable.h ('k') | include/gpu/GrGpuObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698