diff options
author | Kevin Lubick <kjlubick@google.com> | 2023-09-11 11:56:53 -0400 |
---|---|---|
committer | Kevin Lubick <kjlubick@google.com> | 2023-09-13 19:41:11 +0000 |
commit | df73d162b6e415e17c68062e0be64ac96702ada5 (patch) | |
tree | 3e0bc624fdb9f1cd1ee581ce83f47b8f9d2883f3 /gm/lazytiling.cpp | |
parent | b38989859b81cba40dc7e83d99333dd51bef8c1b (diff) | |
download | skia-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.cpp | 13 |
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) { |