Pass color types when creating texture with initial data.
One describes the color type use case for the texture and the other
the color type of the texel data, a la writePixels().
Bug: skia:6718
Change-Id: I3ca2ab9f76aaeca4b2861a171b1aaacaa0709d1e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/240679
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/src/gpu/ccpr/GrCCAtlas.cpp b/src/gpu/ccpr/GrCCAtlas.cpp
index 92fca8e..55d8f97 100644
--- a/src/gpu/ccpr/GrCCAtlas.cpp
+++ b/src/gpu/ccpr/GrCCAtlas.cpp
@@ -122,8 +122,8 @@
desc.fHeight = fHeight;
desc.fConfig = pixelConfig;
fBackingTexture = resourceProvider->createTexture(
- desc, format, GrRenderable::kYes, sampleCount, SkBudgeted::kYes,
- GrProtected::kNo);
+ desc, format, GrRenderable::kYes, sampleCount, GrMipMapped::kNo,
+ SkBudgeted::kYes, GrProtected::kNo);
}
return fBackingTexture;
},