Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: src/image/SkSurface_Gpu.h

Issue 1925803004: Add sk_sp to SkSurface_Gpu and SkGpuDevice (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address code review issues Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698