Rename GrMipMapsStatus GrMipmapStatus
For consistency with other enums and public APIs.
Change-Id: I026da5529f11051693cae5691c7ad92fad5ed446
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/304597
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrTexture.cpp b/src/gpu/GrTexture.cpp
index 3cf9de6..8cf48c3 100644
--- a/src/gpu/GrTexture.cpp
+++ b/src/gpu/GrTexture.cpp
@@ -23,14 +23,14 @@
#endif
void GrTexture::markMipMapsDirty() {
- if (GrMipMapsStatus::kValid == fMipMapsStatus) {
- fMipMapsStatus = GrMipMapsStatus::kDirty;
+ if (GrMipmapStatus::kValid == fMipMapsStatus) {
+ fMipMapsStatus = GrMipmapStatus::kDirty;
}
}
void GrTexture::markMipMapsClean() {
- SkASSERT(GrMipMapsStatus::kNotAllocated != fMipMapsStatus);
- fMipMapsStatus = GrMipMapsStatus::kValid;
+ SkASSERT(GrMipmapStatus::kNotAllocated != fMipMapsStatus);
+ fMipMapsStatus = GrMipmapStatus::kValid;
}
size_t GrTexture::onGpuMemorySize() const {
@@ -44,11 +44,11 @@
const SkISize& dimensions,
GrProtected isProtected,
GrTextureType textureType,
- GrMipMapsStatus mipMapsStatus)
+ GrMipmapStatus mipmapStatus)
: INHERITED(gpu, dimensions, isProtected)
, fTextureType(textureType)
- , fMipMapsStatus(mipMapsStatus) {
- if (GrMipMapsStatus::kNotAllocated == fMipMapsStatus) {
+ , fMipMapsStatus(mipmapStatus) {
+ if (GrMipmapStatus::kNotAllocated == fMipMapsStatus) {
fMaxMipMapLevel = 0;
} else {
fMaxMipMapLevel = SkMipmap::ComputeLevelCount(this->width(), this->height());