Index: src/core/SkImageGenerator.cpp |
diff --git a/src/core/SkImageGenerator.cpp b/src/core/SkImageGenerator.cpp |
index 82b42d7a97e9ab1106fcee9740ca0b955acbfd82..d42ece828a7d906f9b69a9b49d685cc834d47667 100644 |
--- a/src/core/SkImageGenerator.cpp |
+++ b/src/core/SkImageGenerator.cpp |
@@ -6,6 +6,12 @@ |
*/ |
#include "SkImageGenerator.h" |
+#include "SkNextID.h" |
+ |
+SkImageGenerator::SkImageGenerator(const SkImageInfo& info) |
+ : fInfo(info) |
+ , fUniqueID(SkNextID::ImageID()) |
+{} |
bool SkImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, |
SkPMColor ctable[], int* ctableCount) { |
@@ -98,6 +104,13 @@ bool SkImageGenerator::onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t |
return this->onGetYUV8Planes(sizes, planes, rowBytes); |
} |
+GrTexture* SkImageGenerator::generateTexture(GrContext* ctx, SkImageUsageType usage) { |
+ if (!ctx) { |
+ return nullptr; |
+ } |
+ return this->onGenerateTexture(ctx, usage); |
+} |
+ |
///////////////////////////////////////////////////////////////////////////////////////////// |
SkData* SkImageGenerator::onRefEncodedData() { |