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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp

Issue 2556723003: Merge color options into ColorBehavior (Closed)
Patch Set: Feedback Created 4 years 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
Index: third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp
index b710b7a8ccac5e36e32bd85f0ab157698b16e5ba..3b90c5d7255e48e3e433e2c1df668a2b1f2b0a40 100644
--- a/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/bmp/BMPImageDecoder.cpp
@@ -41,13 +41,9 @@ namespace blink {
static const size_t sizeOfFileHeader = 14;
BMPImageDecoder::BMPImageDecoder(AlphaOption alphaOption,
- ColorSpaceOption colorOptions,
- sk_sp<SkColorSpace> targetColorSpace,
+ const ColorBehavior& colorBehavior,
size_t maxDecodedBytes)
- : ImageDecoder(alphaOption,
- colorOptions,
- std::move(targetColorSpace),
- maxDecodedBytes),
+ : ImageDecoder(alphaOption, colorBehavior, maxDecodedBytes),
m_decodedOffset(0) {}
void BMPImageDecoder::onSetData(SegmentReader* data) {

Powered by Google App Engine
This is Rietveld 408576698