diff options
author | Robert Phillips <robertphillips@google.com> | 2018-03-02 08:53:14 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-02 17:10:30 +0000 |
commit | fde6fa0903b3cedc463c1a753268ffcf30ad7a38 (patch) | |
tree | 7dc2b1ee56d0a4d9ae22b467ef21823bf2f8dde8 /src/gpu/GrContextPriv.h | |
parent | e35a99ed706dcd0407c7ca4373ed97d21d988069 (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/gpu/GrContextPriv.h')
-rw-r--r-- | src/gpu/GrContextPriv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrContextPriv.h b/src/gpu/GrContextPriv.h index a8fda09efe..d8baef8f2d 100644 --- a/src/gpu/GrContextPriv.h +++ b/src/gpu/GrContextPriv.h @@ -28,7 +28,7 @@ public: /** * Create a GrContext without a resource cache */ - static sk_sp<GrContext> MakeDDL(GrContextThreadSafeProxy*); + static sk_sp<GrContext> MakeDDL(sk_sp<GrContextThreadSafeProxy>); GrDrawingManager* drawingManager() { return fContext->fDrawingManager.get(); } |