aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDDLContext.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-05-10 12:57:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-10 19:14:16 +0000
commit52aacd602f792a01218ca903759f6b9d4ec28450 (patch)
treeec5a18a5f4493fcbfe785777d02bbe8d7149ca2d /src/gpu/GrDDLContext.cpp
parentce4cf72e3487f661e53f6d0c3416c9b58da4fd00 (diff)
Add GrContextThreadSafeProxy and remove most friends of GrContextThreadSafeProxy
A step towards removing GrCaps from GrContext.h Also adds operator== to GrContextThreadSafeProxy. Change-Id: Ic0bae12299dfb0ac8817d9f1c56a1219d6df97d9 Reviewed-on: https://skia-review.googlesource.com/127329 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrDDLContext.cpp')
-rw-r--r--src/gpu/GrDDLContext.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrDDLContext.cpp b/src/gpu/GrDDLContext.cpp
index 9a91ab8526..5ed65ea5f0 100644
--- a/src/gpu/GrDDLContext.cpp
+++ b/src/gpu/GrDDLContext.cpp
@@ -6,8 +6,8 @@
*/
#include "GrContext.h"
-
#include "GrContextPriv.h"
+#include "GrContextThreadSafeProxyPriv.h"
/**
* The DDL Context is the one in effect during DDL Recording. It isn't backed by a GrGPU and
@@ -16,8 +16,8 @@
class SK_API GrDDLContext : public GrContext {
public:
GrDDLContext(sk_sp<GrContextThreadSafeProxy> proxy)
- : INHERITED(proxy->fBackend, proxy->fContextUniqueID) {
- fCaps = proxy->fCaps;
+ : INHERITED(proxy->priv().backend(), proxy->priv().contextUniqueID()) {
+ fCaps = proxy->priv().refCaps();
fThreadSafeProxy = std::move(proxy);
}
@@ -66,7 +66,7 @@ sk_sp<GrContext> GrContextPriv::MakeDDL(const sk_sp<GrContextThreadSafeProxy>& p
// Note: we aren't creating a Gpu here. This causes the resource provider & cache to
// also not be created
- if (!context->init(proxy->fOptions)) {
+ if (!context->init(proxy->priv().contextOptions())) {
return nullptr;
}
return context;