diff options
author | Greg Daniel <egdaniel@google.com> | 2018-04-04 14:02:51 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-04 18:39:18 +0000 |
commit | 1efe3224735046db153ffff6691b1f741f371794 (patch) | |
tree | 5943f0b6d73661fa775b6815718350965abcc83b | |
parent | af2769d00b70ca456452e4e88bdf5abecd320f68 (diff) |
Make sure we set the origin when initDescForDstCopy fails
Bug: skia:
Change-Id: Ic46a8086c530857d57dd713363482b50b48b5a4f
Reviewed-on: https://skia-review.googlesource.com/118682
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
-rw-r--r-- | src/gpu/GrRenderTargetContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp index f6da289c52..cdb25fb533 100644 --- a/src/gpu/GrRenderTargetContext.cpp +++ b/src/gpu/GrRenderTargetContext.cpp @@ -1795,6 +1795,7 @@ bool GrRenderTargetContext::setupDstProxy(GrRenderTargetProxy* rtProxy, const Gr &disallowSubrect)) { desc.fFlags = kRenderTarget_GrSurfaceFlag; desc.fConfig = rtProxy->config(); + origin = rtProxy->origin(); } if (!disallowSubrect) { |