aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetOpList.h
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-07-24 11:04:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-24 15:31:15 +0000
commit20d4e546d8cb34f8944ef00d249416a047c95524 (patch)
tree98fd2038df62c53eb14935e68644359c609f3dd0 /src/gpu/GrRenderTargetOpList.h
parent734b2a859784af0b16dbbe07570e6d2f5da34e76 (diff)
Reduce arbitrary opList splitting when sorting (take 2)
The original CL (https://skia-review.googlesource.com/c/skia/+/141243 (Reduce arbitrary opList splitting when sorting)) was reverted due to Gold image diffs and perf regressions on Android. The image diffs should be fixed by: https://skia-review.googlesource.com/c/skia/+/142163 (Fix explicit allocation bug) Change-Id: I4bcc59820daf440de81f48e8970b47a6c8ec2bbb Reviewed-on: https://skia-review.googlesource.com/142102 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetOpList.h')
-rw-r--r--src/gpu/GrRenderTargetOpList.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetOpList.h b/src/gpu/GrRenderTargetOpList.h
index 8629a7cb1f..81bd6f16e4 100644
--- a/src/gpu/GrRenderTargetOpList.h
+++ b/src/gpu/GrRenderTargetOpList.h
@@ -87,6 +87,9 @@ public:
op->visitProxies(addDependency);
clip.visitProxies(addDependency);
+ if (dstProxy.proxy()) {
+ addDependency(dstProxy.proxy());
+ }
return this->recordOp(std::move(op), caps, clip.doesClip() ? &clip : nullptr, &dstProxy);
}