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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageSource.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 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 12 matching lines...) Expand all
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 ImageSource_h 26 #ifndef ImageSource_h
27 #define ImageSource_h 27 #define ImageSource_h
28 28
29 #include "platform/PlatformExport.h" 29 #include "platform/PlatformExport.h"
30 #include "platform/graphics/ImageOrientation.h" 30 #include "platform/graphics/ImageOrientation.h"
31 #include "wtf/Forward.h" 31 #include "wtf/Forward.h"
32 #include "wtf/Noncopyable.h" 32 #include "wtf/Noncopyable.h"
33 #include "wtf/OwnPtr.h" 33 #include <memory>
34 34
35 class SkImage; 35 class SkImage;
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class DeferredImageDecoder; 39 class DeferredImageDecoder;
40 class ImageOrientation; 40 class ImageOrientation;
41 class IntPoint; 41 class IntPoint;
42 class IntSize; 42 class IntSize;
43 class SharedBuffer; 43 class SharedBuffer;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 float frameDurationAtIndex(size_t) const; 88 float frameDurationAtIndex(size_t) const;
89 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall y used any alpha. 89 bool frameHasAlphaAtIndex(size_t) const; // Whether or not the frame actuall y used any alpha.
90 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu lly received. 90 bool frameIsCompleteAtIndex(size_t) const; // Whether or not the frame is fu lly received.
91 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation 91 ImageOrientation orientationAtIndex(size_t) const; // EXIF image orientation
92 92
93 // Returns the number of bytes in the decoded frame. May return 0 if the 93 // Returns the number of bytes in the decoded frame. May return 0 if the
94 // frame has not yet begun to decode. 94 // frame has not yet begun to decode.
95 size_t frameBytesAtIndex(size_t) const; 95 size_t frameBytesAtIndex(size_t) const;
96 96
97 private: 97 private:
98 OwnPtr<DeferredImageDecoder> m_decoder; 98 std::unique_ptr<DeferredImageDecoder> m_decoder;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif 103 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698