Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1045)

Unified Diff: src/core/SkImageCacherator.h

Issue 1862133002: Add whitelist parameter to refEncodedData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/codec/SkCodecImageGenerator.cpp ('k') | src/core/SkImageCacherator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkImageCacherator.h
diff --git a/src/core/SkImageCacherator.h b/src/core/SkImageCacherator.h
index 7e146182c7ac3a763e7d431a262f5cd06677ca01..003088478b973169cdf1cb744753a1dc12135ff0 100644
--- a/src/core/SkImageCacherator.h
+++ b/src/core/SkImageCacherator.h
@@ -8,6 +8,7 @@
#ifndef SkImageCacherator_DEFINED
#define SkImageCacherator_DEFINED
+#include "SkImage.h"
#include "SkImageGenerator.h"
#include "SkMutex.h"
#include "SkTemplates.h"
@@ -101,4 +102,14 @@ private:
friend class GrImageTextureMaker;
};
+// Exposed so it can be tested, not meant for external usage per-se
+//
+class SkGpuFormatWhitelist : public SkImageGenerator::RefEncodedWhitelist {
+ GrContext* fCtx;
+public:
+ SkGpuFormatWhitelist(GrContext* ctx) : fCtx(ctx) {}
+
+ bool includes(SkEncodedFormat format) override;
+};
+
#endif
« no previous file with comments | « src/codec/SkCodecImageGenerator.cpp ('k') | src/core/SkImageCacherator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698