diff options
author | Robert Phillips <robertphillips@google.com> | 2017-04-13 12:23:54 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-04-14 15:55:47 +0000 |
commit | dc83b892a0ae431c5fe123a7e6873d63264bd64c (patch) | |
tree | 9f266166998488a7661a674ea1131bf0f7603979 /src/gpu/GrOpList.cpp | |
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.cpp')
-rw-r--r-- | src/gpu/GrOpList.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gpu/GrOpList.cpp b/src/gpu/GrOpList.cpp index 1f90f431a5..28b972df99 100644 --- a/src/gpu/GrOpList.cpp +++ b/src/gpu/GrOpList.cpp @@ -21,12 +21,13 @@ uint32_t GrOpList::CreateUniqueID() { return id; } -GrOpList::GrOpList(GrSurfaceProxy* surfaceProxy, GrAuditTrail* auditTrail) - : fUniqueID(CreateUniqueID()) - , fFlags(0) - , fTarget(surfaceProxy) - , fAuditTrail(auditTrail) { - +GrOpList::GrOpList(sk_sp<GrSurfaceProxy> surfaceProxy, GrAuditTrail* auditTrail) + // MDB TODO: in the future opLists will own the GrSurfaceProxy they target. + // For now, preserve the status quo. + : fTarget(surfaceProxy.get()) + , fAuditTrail(auditTrail) + , fUniqueID(CreateUniqueID()) + , fFlags(0) { surfaceProxy->setLastOpList(this); } |