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

Side by Side Diff: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h

Issue 2503973002: Add image color space histograms (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 static bool sizeCalculationMayOverflow(unsigned width, unsigned height) { 338 static bool sizeCalculationMayOverflow(unsigned width, unsigned height) {
339 unsigned long long total_size = static_cast<unsigned long long>(width) * 339 unsigned long long total_size = static_cast<unsigned long long>(width) *
340 static_cast<unsigned long long>(height); 340 static_cast<unsigned long long>(height);
341 return total_size > ((1 << 29) - 1); 341 return total_size > ((1 << 29) - 1);
342 } 342 }
343 343
344 IntSize m_size; 344 IntSize m_size;
345 bool m_sizeAvailable = false; 345 bool m_sizeAvailable = false;
346 bool m_isAllDataReceived = false; 346 bool m_isAllDataReceived = false;
347 bool m_failed = false; 347 bool m_failed = false;
348 bool m_hasHistogrammedColorSpace = false;
348 349
349 sk_sp<SkColorSpace> m_embeddedColorSpace = nullptr; 350 sk_sp<SkColorSpace> m_embeddedColorSpace = nullptr;
350 std::unique_ptr<SkColorSpaceXform> m_sourceToOutputDeviceColorTransform; 351 std::unique_ptr<SkColorSpaceXform> m_sourceToOutputDeviceColorTransform;
351 }; 352 };
352 353
353 } // namespace blink 354 } // namespace blink
354 355
355 #endif 356 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698