Add onImageInfo call to SkImage_Base.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1903483003
Review URL: https://codereview.chromium.org/1903483003
diff --git a/src/image/SkImage_Gpu.h b/src/image/SkImage_Gpu.h
index 333a963..612741e 100644
--- a/src/image/SkImage_Gpu.h
+++ b/src/image/SkImage_Gpu.h
@@ -12,6 +12,7 @@
#include "GrTexture.h"
#include "GrGpuResourcePriv.h"
#include "SkBitmap.h"
+#include "SkGr.h"
#include "SkImage_Base.h"
#include "SkImagePriv.h"
#include "SkSurface.h"
@@ -25,6 +26,10 @@
SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType, GrTexture*, SkBudgeted);
~SkImage_Gpu() override;
+ SkImageInfo onImageInfo() const override {
+ return GrMakeInfoFromTexture(fTexture, fTexture->width(), fTexture->height(), isOpaque());
+ }
+
void applyBudgetDecision() const {
if (SkBudgeted::kYes == fBudgeted) {
fTexture->resourcePriv().makeBudgeted();