aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrResourceKey.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-08-04 08:46:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-04 08:46:16 -0700
commit562a66b093c45e2788aab1572d6138eb39c6dc37 (patch)
tree9d1b108028cca6d25237b242bfab3a4ce9f5fff5 /include/gpu/GrResourceKey.h
parentdea6e1c737a97a10e123d811d056ff85a09e1f2e (diff)
Revert "Implement caching of filled paths in the tessellated path renderer."
This reverts commit 468dfa72eb6694145487be17876804dfca3b7adb. This CL caused signficant GM diffs. Revert "Fix resource cache test." This reverts commit b001c41ed37d2018d38ce787b412ed741585d75d. Revert "Fix SkData leaks at GrResourceKey::setCustomData() call sites." This reverts commit c369348aa596d7be05c9ce0ca5d349e5d1903789. These CLs depend on the first one. BUG=skia: TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1260363007
Diffstat (limited to 'include/gpu/GrResourceKey.h')
-rw-r--r--include/gpu/GrResourceKey.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/gpu/GrResourceKey.h b/include/gpu/GrResourceKey.h
index 0a97c20b4d..a353dc2114 100644
--- a/include/gpu/GrResourceKey.h
+++ b/include/gpu/GrResourceKey.h
@@ -10,7 +10,6 @@
#define GrResourceKey_DEFINED
#include "GrTypes.h"
-#include "SkData.h"
#include "SkOnce.h"
#include "SkTemplates.h"
@@ -238,7 +237,6 @@ public:
GrUniqueKey& operator=(const GrUniqueKey& that) {
this->INHERITED::operator=(that);
- this->setCustomData(that.getCustomData());
return *this;
}
@@ -247,14 +245,6 @@ public:
}
bool operator!=(const GrUniqueKey& that) const { return !(*this == that); }
- void setCustomData(const SkData* data) {
- SkSafeRef(data);
- fData.reset(data);
- }
- const SkData* getCustomData() const {
- return fData.get();
- }
-
class Builder : public INHERITED::Builder {
public:
Builder(GrUniqueKey* key, Domain domain, int data32Count)
@@ -278,9 +268,6 @@ public:
return SkToInt((innerKey.dataSize() >> 2) + 1);
}
};
-
-private:
- SkAutoTUnref<const SkData> fData;
};
/**