diff options
author | 2017-04-13 12:23:54 -0400 | |
---|---|---|
committer | 2017-04-14 15:55:47 +0000 | |
commit | dc83b892a0ae431c5fe123a7e6873d63264bd64c (patch) | |
tree | 9f266166998488a7661a674ea1131bf0f7603979 /src/gpu/GrOpList.h | |
parent | d64756e66e65f1a8ec500819d22bbdd1c96fa28d (diff) |
sk_sp-ify opList creation & storage
Change-Id: Idd4d81cd248ad2b2169028ac2e269a66c9cad26b
Reviewed-on: https://skia-review.googlesource.com/13400
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrOpList.h')
-rw-r--r-- | src/gpu/GrOpList.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrOpList.h b/src/gpu/GrOpList.h index 557126681a..0139b6b4d3 100644 --- a/src/gpu/GrOpList.h +++ b/src/gpu/GrOpList.h @@ -22,7 +22,7 @@ class GrTextureOpList; class GrOpList : public SkRefCnt { public: - GrOpList(GrSurfaceProxy* surfaceProxy, GrAuditTrail* auditTrail); + GrOpList(sk_sp<GrSurfaceProxy> surfaceProxy, GrAuditTrail* auditTrail); ~GrOpList() override; // These two methods are invoked as flush time @@ -80,6 +80,10 @@ public: */ SkDEBUGCODE(virtual void dump() const;) +protected: + GrSurfaceProxy* fTarget; + GrAuditTrail* fAuditTrail; + private: friend class GrDrawingManager; // for resetFlag & TopoSortTraits @@ -132,14 +136,10 @@ private: uint32_t fUniqueID; uint32_t fFlags; - GrSurfaceProxy* fTarget; // 'this' GrOpList relies on the output of the GrOpLists in 'fDependencies' SkTDArray<GrOpList*> fDependencies; -protected: - GrAuditTrail* fAuditTrail; - typedef SkRefCnt INHERITED; }; |