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

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

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. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * 3 *
4 * Portions are Copyright (C) 2001-6 mozilla.org 4 * Portions are Copyright (C) 2001-6 mozilla.org
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Stuart Parmenter <stuart@mozilla.com> 7 * Stuart Parmenter <stuart@mozilla.com>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public 10 * modify it under the terms of the GNU Lesser General Public
(...skipping 21 matching lines...) Expand all
32 * deletingthe provisions above and replace them with the notice and 32 * deletingthe provisions above and replace them with the notice and
33 * other provisions required by the MPL or the GPL, as the case may be. 33 * other provisions required by the MPL or the GPL, as the case may be.
34 * If you do not delete the provisions above, a recipient may use your 34 * If you do not delete the provisions above, a recipient may use your
35 * version of this file under any of the LGPL, the MPL or the GPL. 35 * version of this file under any of the LGPL, the MPL or the GPL.
36 */ 36 */
37 37
38 #include "platform/image-decoders/jpeg/JPEGImageDecoder.h" 38 #include "platform/image-decoders/jpeg/JPEGImageDecoder.h"
39 39
40 #include <memory> 40 #include <memory>
41 #include "platform/instrumentation/PlatformInstrumentation.h" 41 #include "platform/instrumentation/PlatformInstrumentation.h"
42 #include "wtf/PtrUtil.h" 42 #include "platform/wtf/PtrUtil.h"
43 43
44 extern "C" { 44 extern "C" {
45 #include <stdio.h> // jpeglib.h needs stdio FILE. 45 #include <stdio.h> // jpeglib.h needs stdio FILE.
46 #include "jpeglib.h" 46 #include "jpeglib.h"
47 #include "iccjpeg.h" 47 #include "iccjpeg.h"
48 #include <setjmp.h> 48 #include <setjmp.h>
49 } 49 }
50 50
51 #if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN) 51 #if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)
52 #error Blink assumes a little-endian target. 52 #error Blink assumes a little-endian target.
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 // has failed. 1010 // has failed.
1011 if (!m_reader->decode(onlySize) && isAllDataReceived()) 1011 if (!m_reader->decode(onlySize) && isAllDataReceived())
1012 setFailed(); 1012 setFailed();
1013 1013
1014 // If decoding is done or failed, we don't need the JPEGImageReader anymore. 1014 // If decoding is done or failed, we don't need the JPEGImageReader anymore.
1015 if (isComplete(this, onlySize) || failed()) 1015 if (isComplete(this, onlySize) || failed())
1016 m_reader.reset(); 1016 m_reader.reset();
1017 } 1017 }
1018 1018
1019 } // namespace blink 1019 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698