Rename GrPixelInfo to GrImageInfo.
Give it its own header file.
Make it store SkISize rather than separate int w/h.
Change-Id: I732f2774c561decac743a950959a70cbc162b67b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/245163
Commit-Queue: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
diff --git a/src/gpu/GrResourceProvider.cpp b/src/gpu/GrResourceProvider.cpp
index c2e62f9..9ba9505 100644
--- a/src/gpu/GrResourceProvider.cpp
+++ b/src/gpu/GrResourceProvider.cpp
@@ -17,6 +17,7 @@
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrGpu.h"
#include "src/gpu/GrGpuBuffer.h"
+#include "src/gpu/GrImageInfo.h"
#include "src/gpu/GrPath.h"
#include "src/gpu/GrPathRendering.h"
#include "src/gpu/GrProxyProvider.h"
@@ -524,8 +525,8 @@
data->reset(new char[tempRB * size.fHeight]);
outLevel->fPixels = data->get();
outLevel->fRowBytes = tempRB;
- GrPixelInfo srcInfo(origColorType, kUnpremul_SkAlphaType, nullptr, size);
- GrPixelInfo dstInfo(allowedColorType, kUnpremul_SkAlphaType, nullptr, size);
+ GrImageInfo srcInfo(origColorType, kUnpremul_SkAlphaType, nullptr, size);
+ GrImageInfo dstInfo(allowedColorType, kUnpremul_SkAlphaType, nullptr, size);
return GrConvertPixels(dstInfo, data->get(), tempRB, srcInfo, inLevel.fPixels, actualRB);
}