aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-02 08:53:14 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-02 17:10:30 +0000
commitfde6fa0903b3cedc463c1a753268ffcf30ad7a38 (patch)
tree7dc2b1ee56d0a4d9ae22b467ef21823bf2f8dde8 /src/core
parente35a99ed706dcd0407c7ca4373ed97d21d988069 (diff)
Fix creation of extra GrContextThreadSafeProxies in DDL world
For the DDLContexts we simply want to reuse the threadSafeProxy from the main thread but we, obviously, still need to create one for the main DirectContext. TBR=bsalomon@google.com Change-Id: I99449bc375172c9004e2e80c21d95ab2d7708309 Reviewed-on: https://skia-review.googlesource.com/110781 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/SkDeferredDisplayListRecorder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkDeferredDisplayListRecorder.cpp b/src/core/SkDeferredDisplayListRecorder.cpp
index a9dbcd45b2..acd7b67b4c 100644
--- a/src/core/SkDeferredDisplayListRecorder.cpp
+++ b/src/core/SkDeferredDisplayListRecorder.cpp
@@ -58,7 +58,7 @@ bool SkDeferredDisplayListRecorder::init() {
#if SK_SUPPORT_GPU
if (!fContext) {
- fContext = GrContextPriv::MakeDDL(fCharacterization.contextInfo());
+ fContext = GrContextPriv::MakeDDL(fCharacterization.refContextInfo());
if (!fContext) {
return false;
}
@@ -95,6 +95,7 @@ bool SkDeferredDisplayListRecorder::init() {
return sk_ref_sp<GrSurface>(lazyProxyData->fReplayDest->priv().peekSurface());
},
desc,
+ GrRenderTargetFlags::kNone,
GrProxyProvider::Textureable(fCharacterization.isTextureable()),
GrMipMapped::kNo,
SkBackingFit::kExact,