Add option to switch between OGA and NGA SkGpuDevices
Bug: skia:11837
Change-Id: Id52f05a055c97cd2644bc70d600e9313766f6730
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/415796
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrDirectContextPriv.h b/src/gpu/GrDirectContextPriv.h
index caa4d7a..fd205d0 100644
--- a/src/gpu/GrDirectContextPriv.h
+++ b/src/gpu/GrDirectContextPriv.h
@@ -11,6 +11,7 @@
#include "include/core/SkSpan.h"
#include "include/core/SkSurface.h"
#include "include/gpu/GrDirectContext.h"
+#include "src/gpu/SkBaseGpuDevice.h"
class GrAtlasManager;
class GrBackendFormat;
@@ -145,6 +146,22 @@
return fContext->fMappedBufferManager.get();
}
+ sk_sp<SkBaseGpuDevice> createDevice(GrColorType,
+ sk_sp<GrSurfaceProxy>,
+ sk_sp<SkColorSpace>,
+ GrSurfaceOrigin,
+ const SkSurfaceProps&,
+ SkBaseGpuDevice::InitContents);
+ sk_sp<SkBaseGpuDevice> createDevice(SkBudgeted,
+ const SkImageInfo&,
+ SkBackingFit,
+ int sampleCount,
+ GrMipmapped,
+ GrProtected,
+ GrSurfaceOrigin,
+ const SkSurfaceProps&,
+ SkBaseGpuDevice::InitContents);
+
#if GR_TEST_UTILS
/** Reset GPU stats */
void resetGpuStats() const;