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

Unified Diff: include/gpu/GrContext.h

Issue 418143004: Rename GrGpuObject to GrGpuResource (Closed) Base URL: https://skia.googlesource.com/skia.git@compact
Patch Set: Fix indents 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 | « gyp/gpu.gypi ('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 a379f80be0f7ca57baa1f2694e82e115b718e284..f533851ac3f377617fd34194731ac420413de5a6 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -90,9 +90,9 @@ public:
* buffer, etc. references/IDs are now invalid. Should be called even when
* GrContext is no longer going to be used for two reasons:
* 1) ~GrContext will not try to free the objects in the 3D API.
- * 2) If you've created GrGpuObjects that outlive the GrContext they will
- * be marked as invalid (GrGpuObjects::isValid()) and won't attempt to
- * free their underlying resource in the 3D API.
+ * 2) If you've created GrGpuResources that outlive the GrContext they
+ * will be marked as invalid (GrGpuResource::isValid()) and won't
+ * attempt to free their underlying resource in the 3D API.
* Content drawn since the last GrContext::flush() may be lost.
*/
void contextLost();
@@ -185,14 +185,14 @@ public:
/**
* Stores a custom resource in the cache, based on the specified key.
*/
- void addResourceToCache(const GrResourceKey&, GrGpuObject*);
+ void addResourceToCache(const GrResourceKey&, GrGpuResource*);
/**
* 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().
*/
- GrGpuObject* findAndRefCachedResource(const GrResourceKey&);
+ GrGpuResource* findAndRefCachedResource(const GrResourceKey&);
/**
* Creates a new text rendering context that is optimal for the
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrGpuObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698