OLD | NEW |
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 24 matching lines...) Expand all Loading... |
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; |
44 | 44 |
45 class PLATFORM_EXPORT ImageSource { | 45 class PLATFORM_EXPORT ImageSource final { |
| 46 USING_FAST_MALLOC(ImageSource); |
46 WTF_MAKE_NONCOPYABLE(ImageSource); | 47 WTF_MAKE_NONCOPYABLE(ImageSource); |
47 public: | 48 public: |
48 ImageSource(); | 49 ImageSource(); |
49 ~ImageSource(); | 50 ~ImageSource(); |
50 | 51 |
51 // Tells the ImageSource that the Image no longer cares about decoded frame | 52 // Tells the ImageSource that the Image no longer cares about decoded frame |
52 // data except for the specified frame. Callers may pass WTF::kNotFound to | 53 // data except for the specified frame. Callers may pass WTF::kNotFound to |
53 // clear all frames. | 54 // clear all frames. |
54 // | 55 // |
55 // In response, the ImageSource should delete cached decoded data for other | 56 // In response, the ImageSource should delete cached decoded data for other |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // frame has not yet begun to decode. | 94 // frame has not yet begun to decode. |
94 size_t frameBytesAtIndex(size_t) const; | 95 size_t frameBytesAtIndex(size_t) const; |
95 | 96 |
96 private: | 97 private: |
97 OwnPtr<DeferredImageDecoder> m_decoder; | 98 OwnPtr<DeferredImageDecoder> m_decoder; |
98 }; | 99 }; |
99 | 100 |
100 } // namespace blink | 101 } // namespace blink |
101 | 102 |
102 #endif | 103 #endif |
OLD | NEW |