aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/image
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-05-15 16:28:07 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-16 21:15:20 +0000
commit50e66d4ab43685acce5a7a942074d562c5fd9639 (patch)
tree568536c3a9d5ee2554004440e57d4867bccfc556 /src/image
parenta63e7ab3bbb2140456378cce0eff23eb74b3583a (diff)
Remove GrRenderTargetContext::desc()
Change-Id: I04bf4a5b443f799896f62fe7aa61b6fb5d5c9c7f Reviewed-on: https://skia-review.googlesource.com/16918 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/SkSurface_Gpu.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp
index 5001811cea..992e4c9274 100644
--- a/src/image/SkSurface_Gpu.cpp
+++ b/src/image/SkSurface_Gpu.cpp
@@ -106,8 +106,11 @@ sk_sp<SkImage> SkSurface_Gpu::onNewImageSnapshot() {
// copy-on-write.
if (!srcProxy || rtc->priv().refsWrappedObjects()) {
// MDB TODO: replace this with GrSurfaceProxy::Copy?
- GrSurfaceDesc desc = rtc->desc();
- desc.fFlags = desc.fFlags & ~kRenderTarget_GrSurfaceFlag;
+ GrSurfaceDesc desc;
+ desc.fConfig = rtc->config();
+ desc.fWidth = rtc->width();
+ desc.fHeight = rtc->height();
+ desc.fOrigin = rtc->origin();
sk_sp<GrSurfaceContext> copyCtx = ctx->contextPriv().makeDeferredSurfaceContext(
desc,