Rename GrColorSpaceInfo -> GrColorInfo
Add version SkImageInfo::Make() that takes SkISize instead of separate
width and height.
Change-Id: I42aa79d23b19e22f5405631728c245b04bce0559
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245172
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrBitmapTextureMaker.cpp b/src/gpu/GrBitmapTextureMaker.cpp
index 48ff321..42eaa41 100644
--- a/src/gpu/GrBitmapTextureMaker.cpp
+++ b/src/gpu/GrBitmapTextureMaker.cpp
@@ -17,9 +17,9 @@
#include "src/gpu/GrSurfaceContext.h"
#include "src/gpu/SkGr.h"
-static GrColorSpaceInfo make_info(const SkBitmap& bm) {
- return GrColorSpaceInfo(SkColorTypeToGrColorType(bm.colorType()), bm.alphaType(),
- bm.refColorSpace());
+static GrColorInfo make_info(const SkBitmap& bm) {
+ return GrColorInfo(SkColorTypeToGrColorType(bm.colorType()), bm.alphaType(),
+ bm.refColorSpace());
}
GrBitmapTextureMaker::GrBitmapTextureMaker(GrRecordingContext* context, const SkBitmap& bitmap,