Index: src/image/SkSurface_Gpu.h |
diff --git a/src/image/SkSurface_Gpu.h b/src/image/SkSurface_Gpu.h |
index 1e76f26c2a3c86e4753722c08019079b8a675fe3..d0f195902a3e63a07c0bae194eb044f0321845c8 100644 |
--- a/src/image/SkSurface_Gpu.h |
+++ b/src/image/SkSurface_Gpu.h |
@@ -16,7 +16,7 @@ class SkGpuDevice; |
class SkSurface_Gpu : public SkSurface_Base { |
public: |
- SkSurface_Gpu(SkGpuDevice*); |
+ SkSurface_Gpu(sk_sp<SkGpuDevice>); |
virtual ~SkSurface_Gpu(); |
GrBackendObject onGetTextureHandle(BackendHandleAccess) override; |
@@ -28,10 +28,10 @@ public: |
void onDiscard() override; |
void onPrepareForExternalIO() override; |
- SkGpuDevice* getDevice() { return fDevice; } |
+ SkGpuDevice* getDevice() { return fDevice.get(); } |
private: |
- SkGpuDevice* fDevice; |
+ sk_sp<SkGpuDevice> fDevice; |
typedef SkSurface_Base INHERITED; |
}; |