aboutsummaryrefslogtreecommitdiff
path: root/gm/lazytiling.cpp
diff options
context:
space:
mode:
authorKevin Lubick <kjlubick@google.com>2023-09-11 11:56:53 -0400
committerKevin Lubick <kjlubick@google.com>2023-09-13 19:41:11 +0000
commitdf73d162b6e415e17c68062e0be64ac96702ada5 (patch)
tree3e0bc624fdb9f1cd1ee581ce83f47b8f9d2883f3 /gm/lazytiling.cpp
parentb38989859b81cba40dc7e83d99333dd51bef8c1b (diff)
downloadskia-df73d162b6e415e17c68062e0be64ac96702ada5.tar.gz
Find and replace GrMipmapped with skgpu::Mipmapped
The legacy names are still defined in GrTypes.h After find and replace, I called: git clang-format origin/main to re-align lines. Change-Id: I1bc3d9e01676a577f43caef128da9aee36b459dc Reviewed-on: https://skia-review.googlesource.com/c/skia/+/753567 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'gm/lazytiling.cpp')
-rw-r--r--gm/lazytiling.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/gm/lazytiling.cpp b/gm/lazytiling.cpp
index 29e1cebf2b..769865dea3 100644
--- a/gm/lazytiling.cpp
+++ b/gm/lazytiling.cpp
@@ -43,10 +43,9 @@ static GrSurfaceProxyView create_view(GrDirectContext* dContext,
}
sk_sp<GrTextureProxy> proxy = GrProxyProvider::MakeFullyLazyProxy(
- [src](GrResourceProvider* rp,
- const GrSurfaceProxy::LazySurfaceDesc& desc)
- -> GrSurfaceProxy::LazyCallbackResult {
- SkASSERT(desc.fMipmapped == GrMipmapped::kNo);
+ [src](GrResourceProvider* rp, const GrSurfaceProxy::LazySurfaceDesc& desc)
+ -> GrSurfaceProxy::LazyCallbackResult {
+ SkASSERT(desc.fMipmapped == skgpu::Mipmapped::kNo);
GrMipLevel mipLevel = {src.getPixels(), src.rowBytes(), nullptr};
auto colorType = SkColorTypeToGrColorType(src.colorType());
@@ -62,7 +61,11 @@ static GrSurfaceProxyView create_view(GrDirectContext* dContext,
mipLevel,
desc.fLabel);
},
- format, GrRenderable::kNo, 1, GrProtected::kNo, *dContext->priv().caps(),
+ format,
+ GrRenderable::kNo,
+ 1,
+ GrProtected::kNo,
+ *dContext->priv().caps(),
GrSurfaceProxy::UseAllocator::kYes);
if (!proxy) {