aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-08-30 09:42:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-08-30 09:42:30 -0700
commit9a44565e9946629c4ee776fb859d168eb953da71 (patch)
treeadd02d6145e69893cbfc0100d993b0f81873dbcd /include/gpu
parentfc6cb7366493665dce96c5d66e67e94924b21cb6 (diff)
Remove custom data from GrGpuResource
Chrome is no longer relying on this feature to track mailboxes for textures. BUG=skia:4134 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2291203002 Review-Url: https://codereview.chromium.org/2291203002
Diffstat (limited to 'include/gpu')
-rw-r--r--include/gpu/GrGpuResource.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/gpu/GrGpuResource.h b/include/gpu/GrGpuResource.h
index 37a87d364d..fb7cb8c94d 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.
};