OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 private: | 123 private: |
124 ImageBitmapLoader(ImageBitmapFactories&, | 124 ImageBitmapLoader(ImageBitmapFactories&, |
125 Optional<IntRect> cropRect, | 125 Optional<IntRect> cropRect, |
126 ScriptState*, | 126 ScriptState*, |
127 const ImageBitmapOptions&); | 127 const ImageBitmapOptions&); |
128 | 128 |
129 void rejectPromise(); | 129 void rejectPromise(); |
130 | 130 |
131 void scheduleAsyncImageBitmapDecoding(DOMArrayBuffer*); | 131 void scheduleAsyncImageBitmapDecoding(DOMArrayBuffer*); |
132 void decodeImageOnDecoderThread(WebTaskRunner*, | 132 void decodeImageOnDecoderThread(RefPtr<WebTaskRunner>, |
133 DOMArrayBuffer*, | 133 DOMArrayBuffer*, |
134 const String& premultiplyAlphaOption, | 134 const String& premultiplyAlphaOption, |
135 const String& colorSpaceConversionOption); | 135 const String& colorSpaceConversionOption); |
136 void resolvePromiseOnOriginalThread(sk_sp<SkImage>); | 136 void resolvePromiseOnOriginalThread(sk_sp<SkImage>); |
137 | 137 |
138 // FileReaderLoaderClient | 138 // FileReaderLoaderClient |
139 void didStartLoading() override {} | 139 void didStartLoading() override {} |
140 void didReceiveData() override {} | 140 void didReceiveData() override {} |
141 void didFinishLoading() override; | 141 void didFinishLoading() override; |
142 void didFail(FileError::ErrorCode) override; | 142 void didFail(FileError::ErrorCode) override; |
(...skipping 12 matching lines...) Expand all Loading... |
155 | 155 |
156 void addLoader(ImageBitmapLoader*); | 156 void addLoader(ImageBitmapLoader*); |
157 void didFinishLoading(ImageBitmapLoader*); | 157 void didFinishLoading(ImageBitmapLoader*); |
158 | 158 |
159 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders; | 159 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders; |
160 }; | 160 }; |
161 | 161 |
162 } // namespace blink | 162 } // namespace blink |
163 | 163 |
164 #endif // ImageBitmapFactories_h | 164 #endif // ImageBitmapFactories_h |
OLD | NEW |