Move proxyProvider and singleOwner to GrImageContext
This starts to beef up the capabilities of the GrImageContext in preparation for its future responsibilities (i.e., creating promise images w/o a recordingContext).
Note that the proxyProvider still has different behavior if it has a full context vs. a reduced context. I intend to just let this behavior remain as is.
Change-Id: Idb9d99a548ef928fc1b9dc1e5a34f74343bb0b4b
Reviewed-on: https://skia-review.googlesource.com/c/189490
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrRecordingContext.cpp b/src/gpu/GrRecordingContext.cpp
index ca19782..1067950 100644
--- a/src/gpu/GrRecordingContext.cpp
+++ b/src/gpu/GrRecordingContext.cpp
@@ -7,11 +7,23 @@
#include "GrRecordingContext.h"
+#include "GrCaps.h"
+#include "GrRecordingContextPriv.h"
+#include "GrSkSLFPFactoryCache.h"
+
GrRecordingContext::GrRecordingContext(GrBackendApi backend,
const GrContextOptions& options,
- uint32_t uniqueID)
- : INHERITED(backend, options, uniqueID) {
+ uint32_t contextID)
+ : INHERITED(backend, options, contextID) {
}
GrRecordingContext::~GrRecordingContext() { }
+///////////////////////////////////////////////////////////////////////////////////////////////////
+sk_sp<const GrCaps> GrRecordingContextPriv::refCaps() const {
+ return fContext->refCaps();
+}
+
+sk_sp<GrSkSLFPFactoryCache> GrRecordingContextPriv::fpFactoryCache() {
+ return fContext->fpFactoryCache();
+}