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

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

Issue 2798863003: Rewrite references to "wtf/" to "platform/wtf/" in platform/image-decoders. (Closed)
Patch Set: Remove unused RefPtr.h. Created 3 years, 8 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) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef PNGImageReader_h 26 #ifndef PNGImageReader_h
27 #define PNGImageReader_h 27 #define PNGImageReader_h
28 28
29 #include "platform/PlatformExport.h" 29 #include "platform/PlatformExport.h"
30 #include "platform/geometry/IntRect.h" 30 #include "platform/geometry/IntRect.h"
31 #include "platform/image-decoders/ImageFrame.h" 31 #include "platform/image-decoders/ImageFrame.h"
32 #include "platform/wtf/Allocator.h"
33 #include "platform/wtf/PtrUtil.h"
34 #include "platform/wtf/Vector.h"
32 #include "png.h" 35 #include "png.h"
33 #include "wtf/Allocator.h"
34 #include "wtf/PtrUtil.h"
35 #include "wtf/Vector.h"
36 36
37 #if !defined(PNG_LIBPNG_VER_MAJOR) || !defined(PNG_LIBPNG_VER_MINOR) 37 #if !defined(PNG_LIBPNG_VER_MAJOR) || !defined(PNG_LIBPNG_VER_MINOR)
38 #error version error: compile against a versioned libpng. 38 #error version error: compile against a versioned libpng.
39 #endif 39 #endif
40 40
41 #if PNG_LIBPNG_VER_MAJOR > 1 || \ 41 #if PNG_LIBPNG_VER_MAJOR > 1 || \
42 (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 4) 42 (PNG_LIBPNG_VER_MAJOR == 1 && PNG_LIBPNG_VER_MINOR >= 4)
43 #define JMPBUF(png_ptr) png_jmpbuf(png_ptr) 43 #define JMPBUF(png_ptr) png_jmpbuf(png_ptr)
44 #else 44 #else
45 #define JMPBUF(png_ptr) png_ptr->jmpbuf 45 #define JMPBUF(png_ptr) png_ptr->jmpbuf
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 bool checkSequenceNumber(const png_byte* position); 161 bool checkSequenceNumber(const png_byte* position);
162 bool firstFrameFullyReceived() const { 162 bool firstFrameFullyReceived() const {
163 return !m_frameInfo.isEmpty() && 163 return !m_frameInfo.isEmpty() &&
164 m_frameInfo[0].byteLength != kFirstFrameIndicator; 164 m_frameInfo[0].byteLength != kFirstFrameIndicator;
165 } 165 }
166 }; 166 };
167 167
168 } // namespace blink 168 } // namespace blink
169 169
170 #endif 170 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698