| Index: src/gpu/GrGpuResource.cpp
|
| diff --git a/src/gpu/GrGpuResource.cpp b/src/gpu/GrGpuResource.cpp
|
| index cc24335184c2b98662e5f9133c4459d179ac3a76..2a5718aefad38a14bd012a16082674ef5e600faa 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();
|
|
|