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

Unified Diff: include/gpu/GrGpuResource.h

Issue 2291203002: Remove custom data from GrGpuResource (Closed)
Patch Set: Created 4 years, 4 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/gpu/GrGpuResource.cpp » ('j') | tests/ResourceCacheTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrGpuResource.h
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 37a87d364da857d84c2a9502286811881736df43..fb7cb8c94dd84a4770594ff6604899ad2093ee85 100644
--- a/include/gpu/GrGpuResource.h
+++ b/include/gpu/GrGpuResource.h
@@ -10,7 +10,6 @@
#include "GrResourceKey.h"
#include "GrTypesPriv.h"
-#include "SkData.h"
class GrContext;
class GrGpu;
@@ -188,20 +187,6 @@ public:
const GrUniqueKey& getUniqueKey() const { return fUniqueKey; }
/**
- * Attach a custom data object to this resource. The data will remain attached
- * for the lifetime of this resource (until it is abandoned or released).
- * Takes a ref on data. Previously attached data, if any, is unrefed.
- * Returns the data argument, for convenience.
- */
- const SkData* setCustomData(const SkData* data);
-
- /**
- * Returns the custom data object that was attached to this resource by
- * calling setCustomData.
- */
- const SkData* getCustomData() const { return fData.get(); }
-
- /**
* Internal-only helper class used for manipulations of the resource by the cache.
*/
class CacheAccess;
@@ -317,8 +302,6 @@ private:
bool fRefsWrappedObjects;
const uint32_t fUniqueID;
- SkAutoTUnref<const SkData> fData;
-
typedef GrIORef<GrGpuResource> INHERITED;
friend class GrIORef<GrGpuResource>; // to access notifyAllCntsAreZero and notifyRefCntIsZero.
};
« no previous file with comments | « no previous file | src/gpu/GrGpuResource.cpp » ('j') | tests/ResourceCacheTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698