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

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

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 bool m_requiredPreviousFrameIndexValid; 230 bool m_requiredPreviousFrameIndexValid;
231 #endif 231 #endif
232 }; 232 };
233 233
234 // ImageDecoder is a base for all format-specific decoders 234 // ImageDecoder is a base for all format-specific decoders
235 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache. 235 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache.
236 // 236 //
237 class ImageDecoder { 237 class ImageDecoder {
238 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED; 238 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED;
239 public: 239 public:
240 static const size_t noDecodedImageByteLimit = WebKit::Platform::noDecode dImageByteLimit; 240 static const size_t noDecodedImageByteLimit = blink::Platform::noDecoded ImageByteLimit;
241 241
242 ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAnd ColorProfileOption gammaAndColorProfileOption, size_t maxDecodedBytes) 242 ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAnd ColorProfileOption gammaAndColorProfileOption, size_t maxDecodedBytes)
243 : m_premultiplyAlpha(alphaOption == ImageSource::AlphaPremultiplied) 243 : m_premultiplyAlpha(alphaOption == ImageSource::AlphaPremultiplied)
244 , m_ignoreGammaAndColorProfile(gammaAndColorProfileOption == ImageSo urce::GammaAndColorProfileIgnored) 244 , m_ignoreGammaAndColorProfile(gammaAndColorProfileOption == ImageSo urce::GammaAndColorProfileIgnored)
245 , m_maxDecodedBytes(maxDecodedBytes) 245 , m_maxDecodedBytes(maxDecodedBytes)
246 , m_sizeAvailable(false) 246 , m_sizeAvailable(false)
247 , m_isAllDataReceived(false) 247 , m_isAllDataReceived(false)
248 , m_failed(false) { } 248 , m_failed(false) { }
249 249
250 virtual ~ImageDecoder() { } 250 virtual ~ImageDecoder() { }
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 467
468 IntSize m_size; 468 IntSize m_size;
469 bool m_sizeAvailable; 469 bool m_sizeAvailable;
470 bool m_isAllDataReceived; 470 bool m_isAllDataReceived;
471 bool m_failed; 471 bool m_failed;
472 }; 472 };
473 473
474 } // namespace WebCore 474 } // namespace WebCore
475 475
476 #endif 476 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698