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

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

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | 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 29 matching lines...) Expand all
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 41
42 #if USE(QCMSLIB) 42 #if USE(QCMSLIB)
43 #include "qcms.h" 43 #include "qcms.h"
44 #if OS(MACOSX) 44 #if OS(MACOSX)
45 #include <ApplicationServices/ApplicationServices.h> 45 #include <ApplicationServices/ApplicationServices.h>
46 #include "wtf/RetainPtr.h" 46 #include "wtf/RetainPtr.h"
47 #endif 47 #endif
48 #endif 48 #endif
49 49
50 namespace WebCore { 50 namespace blink {
51 51
52 // ImageDecoder is a base for all format-specific decoders 52 // ImageDecoder is a base for all format-specific decoders
53 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache. 53 // (e.g. JPEGImageDecoder). This base manages the ImageFrame cache.
54 // 54 //
55 class PLATFORM_EXPORT ImageDecoder { 55 class PLATFORM_EXPORT ImageDecoder {
56 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED; 56 WTF_MAKE_NONCOPYABLE(ImageDecoder); WTF_MAKE_FAST_ALLOCATED;
57 public: 57 public:
58 static const size_t noDecodedImageByteLimit = blink::Platform::noDecodedImag eByteLimit; 58 static const size_t noDecodedImageByteLimit = blink::Platform::noDecodedImag eByteLimit;
59 59
60 ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColo rProfileOption gammaAndColorProfileOption, size_t maxDecodedBytes) 60 ImageDecoder(ImageSource::AlphaOption alphaOption, ImageSource::GammaAndColo rProfileOption gammaAndColorProfileOption, size_t maxDecodedBytes)
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 * static_cast<unsigned long long>(height); 296 * static_cast<unsigned long long>(height);
297 return total_size > ((1 << 29) - 1); 297 return total_size > ((1 << 29) - 1);
298 } 298 }
299 299
300 IntSize m_size; 300 IntSize m_size;
301 bool m_sizeAvailable; 301 bool m_sizeAvailable;
302 bool m_isAllDataReceived; 302 bool m_isAllDataReceived;
303 bool m_failed; 303 bool m_failed;
304 }; 304 };
305 305
306 } // namespace WebCore 306 } // namespace blink
307 307
308 #endif 308 #endif
OLDNEW
« no previous file with comments | « Source/platform/heap/glue/PendingGCRunner.h ('k') | Source/platform/image-decoders/ImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698