Start using skgpu::v1 and skgpu::v2 namespaces
Bug: skia:11837
Change-Id: I042775dae34c99c20048d6d70aa6f06b2a6a268b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/424117
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/GrDirectContextPriv.cpp b/src/gpu/GrDirectContextPriv.cpp
index b00a1a2..7e52bb6 100644
--- a/src/gpu/GrDirectContextPriv.cpp
+++ b/src/gpu/GrDirectContextPriv.cpp
@@ -227,26 +227,26 @@
return GrConfigConversionEffect::Make(std::move(fp), PMConversion::kToPremul);
}
-sk_sp<SkBaseGpuDevice> GrDirectContextPriv::createDevice(GrColorType colorType,
- sk_sp<GrSurfaceProxy> proxy,
- sk_sp<SkColorSpace> colorSpace,
- GrSurfaceOrigin origin,
- const SkSurfaceProps& props,
- SkBaseGpuDevice::InitContents init) {
+sk_sp<skgpu::BaseDevice> GrDirectContextPriv::createDevice(GrColorType colorType,
+ sk_sp<GrSurfaceProxy> proxy,
+ sk_sp<SkColorSpace> colorSpace,
+ GrSurfaceOrigin origin,
+ const SkSurfaceProps& props,
+ skgpu::BaseDevice::InitContents init) {
return fContext->GrRecordingContext::priv().createDevice(colorType, std::move(proxy),
std::move(colorSpace),
origin, props, init);
}
-sk_sp<SkBaseGpuDevice> GrDirectContextPriv::createDevice(SkBudgeted budgeted,
- const SkImageInfo& ii,
- SkBackingFit fit,
- int sampleCount,
- GrMipmapped mipmapped,
- GrProtected isProtected,
- GrSurfaceOrigin origin,
- const SkSurfaceProps& props,
- SkBaseGpuDevice::InitContents init) {
+sk_sp<skgpu::BaseDevice> GrDirectContextPriv::createDevice(SkBudgeted budgeted,
+ const SkImageInfo& ii,
+ SkBackingFit fit,
+ int sampleCount,
+ GrMipmapped mipmapped,
+ GrProtected isProtected,
+ GrSurfaceOrigin origin,
+ const SkSurfaceProps& props,
+ skgpu::BaseDevice::InitContents init) {
return fContext->GrRecordingContext::priv().createDevice(budgeted, ii, fit, sampleCount,
mipmapped, isProtected,
origin, props, init);