diff options
author | Aditya Kushwah <adkushwa@microsoft.com> | 2022-05-03 13:00:24 -0700 |
---|---|---|
committer | SkCQ <skcq-be@skia-corp.google.com.iam.gserviceaccount.com> | 2022-05-03 21:39:19 +0000 |
commit | a696f8a92549fdfc589411c5df84be05432762a0 (patch) | |
tree | 30d30714380cdfe17ff5ff7494715c27eeafd4da /gm/lazytiling.cpp | |
parent | 16aa3fc4586d686c38b1f91d2b7acde2b89fb999 (diff) | |
download | skia-a696f8a92549fdfc589411c5df84be05432762a0.tar.gz |
Plumb label from GrGpu's createTexture function.
In this CL, GrResourceProvider's functions, like createTexture etc,
get label string passed to it which are called from GrGpu which then
passes the label to setLabel method of GrGpuResource.
Bug: chromium:1164111
Change-Id: Icfd88279c0729e36c105c62c05f382aab0a89310
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/534778
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'gm/lazytiling.cpp')
-rw-r--r-- | gm/lazytiling.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/lazytiling.cpp b/gm/lazytiling.cpp index df9e7e112b..c32d2d1556 100644 --- a/gm/lazytiling.cpp +++ b/gm/lazytiling.cpp @@ -55,7 +55,8 @@ static GrSurfaceProxyView create_view(GrDirectContext* dContext, desc.fBudgeted, desc.fFit, desc.fProtected, - mipLevel); + mipLevel, + desc.fLabel); }, format, GrRenderable::kNo, 1, GrProtected::kNo, *dContext->priv().caps(), GrSurfaceProxy::UseAllocator::kYes); |