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

Unified Diff: src/codec/SkSampler.h

Issue 2335203002: Implement Fill() for incomplete decodes to RGBA_F16 (Closed)
Patch Set: Fix win builds Created 4 years, 3 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/SkSampledCodec.cpp ('k') | src/codec/SkSampler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkSampler.h
diff --git a/src/codec/SkSampler.h b/src/codec/SkSampler.h
index 73e11c986e2949981a4f215678582fdfce060e8c..b233c32be22942577fb4502c7e722662417c2b82 100644
--- a/src/codec/SkSampler.h
+++ b/src/codec/SkSampler.h
@@ -35,6 +35,7 @@ public:
* Stride in bytes of the destination.
*
* @param colorOrIndex
+ * If colorType is kF16, colorOrIndex is treated as a 64-bit color.
* If colorType is kN32, colorOrIndex is treated as a 32-bit color.
* If colorType is k565, colorOrIndex is treated as a 16-bit color.
* If colorType is kGray, colorOrIndex is treated as an 8-bit color.
@@ -46,13 +47,13 @@ public:
*
*/
static void Fill(const SkImageInfo& info, void* dst, size_t rowBytes,
- uint32_t colorOrIndex, SkCodec::ZeroInitialized zeroInit);
+ uint64_t colorOrIndex, SkCodec::ZeroInitialized zeroInit);
/**
* Allow subclasses to implement unique versions of fill().
*/
virtual void fill(const SkImageInfo& info, void* dst, size_t rowBytes,
- uint32_t colorOrIndex, SkCodec::ZeroInitialized zeroInit) {}
+ uint64_t colorOrIndex, SkCodec::ZeroInitialized zeroInit) {}
virtual ~SkSampler() {}
private:
« no previous file with comments | « src/codec/SkSampledCodec.cpp ('k') | src/codec/SkSampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698