aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gpu/GrGpuResource.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp
index cc24335184..2a5718aefa 100644
--- a/src/gpu/GrGpuResource.cpp
+++ b/src/gpu/GrGpuResource.cpp
@@ -56,6 +56,12 @@ void GrGpuResource::abandon() {
fGpuMemorySize = 0;
}
+const SkData* GrGpuResource::setCustomData(const SkData* data) {
+ SkSafeRef(data);
+ fData.reset(data);
+ return data;
+}
+
const GrContext* GrGpuResource::getContext() const {
if (fGpu) {
return fGpu->getContext();