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

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

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 return m_rowBytes[i]; 307 return m_rowBytes[i];
308 } 308 }
309 309
310 namespace { 310 namespace {
311 311
312 #if USE(QCMSLIB) 312 #if USE(QCMSLIB)
313 313
314 const unsigned kIccColorProfileHeaderLength = 128; 314 const unsigned kIccColorProfileHeaderLength = 128;
315 315
316 bool rgbColorProfile(const char* profileData, unsigned profileLength) { 316 bool rgbColorProfile(const char* profileData, unsigned profileLength) {
317 ASSERT_UNUSED(profileLength, profileLength >= kIccColorProfileHeaderLength); 317 DCHECK_GE(profileLength, kIccColorProfileHeaderLength);
318 318
319 return !memcmp(&profileData[16], "RGB ", 4); 319 return !memcmp(&profileData[16], "RGB ", 4);
320 } 320 }
321 321
322 bool inputDeviceColorProfile(const char* profileData, unsigned profileLength) { 322 bool inputDeviceColorProfile(const char* profileData, unsigned profileLength) {
323 ASSERT_UNUSED(profileLength, profileLength >= kIccColorProfileHeaderLength); 323 DCHECK_GE(profileLength, kIccColorProfileHeaderLength);
324 324
325 return !memcmp(&profileData[12], "mntr", 4) || 325 return !memcmp(&profileData[12], "mntr", 4) ||
326 !memcmp(&profileData[12], "scnr", 4); 326 !memcmp(&profileData[12], "scnr", 4);
327 } 327 }
328 328
329 // The output device color profile is global and shared across multiple threads. 329 // The output device color profile is global and shared across multiple threads.
330 SpinLock gTargetColorProfileLock; 330 SpinLock gTargetColorProfileLock;
331 qcms_profile* gTargetColorProfile = nullptr; 331 qcms_profile* gTargetColorProfile = nullptr;
332 332
333 #endif // USE(QCMSLIB) 333 #endif // USE(QCMSLIB)
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 427
428 // FIXME: Don't force perceptual intent if the image profile contains an 428 // FIXME: Don't force perceptual intent if the image profile contains an
429 // intent. 429 // intent.
430 m_sourceToOutputDeviceColorTransform.reset( 430 m_sourceToOutputDeviceColorTransform.reset(
431 qcms_transform_create(inputProfile.get(), dataFormat, gTargetColorProfile, 431 qcms_transform_create(inputProfile.get(), dataFormat, gTargetColorProfile,
432 QCMS_DATA_RGBA_8, QCMS_INTENT_PERCEPTUAL)); 432 QCMS_DATA_RGBA_8, QCMS_INTENT_PERCEPTUAL));
433 #endif // USE(QCMSLIB) 433 #endif // USE(QCMSLIB)
434 } 434 }
435 435
436 } // namespace blink 436 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698