| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 ImageBitmapLoader(ImageBitmapFactories&, | 122 ImageBitmapLoader(ImageBitmapFactories&, |
| 123 Optional<IntRect> cropRect, | 123 Optional<IntRect> cropRect, |
| 124 ScriptState*, | 124 ScriptState*, |
| 125 const ImageBitmapOptions&); | 125 const ImageBitmapOptions&); |
| 126 | 126 |
| 127 void rejectPromise(); | 127 void rejectPromise(); |
| 128 | 128 |
| 129 void scheduleAsyncImageBitmapDecoding(DOMArrayBuffer*); | 129 void scheduleAsyncImageBitmapDecoding(DOMArrayBuffer*); |
| 130 void decodeImageOnDecoderThread(WebTaskRunner*, | 130 void decodeImageOnDecoderThread(RefPtr<WebTaskRunner>, |
| 131 DOMArrayBuffer*, | 131 DOMArrayBuffer*, |
| 132 const String& premultiplyAlphaOption, | 132 const String& premultiplyAlphaOption, |
| 133 const String& colorSpaceConversionOption); | 133 const String& colorSpaceConversionOption); |
| 134 void resolvePromiseOnOriginalThread(sk_sp<SkImage>); | 134 void resolvePromiseOnOriginalThread(sk_sp<SkImage>); |
| 135 | 135 |
| 136 // FileReaderLoaderClient | 136 // FileReaderLoaderClient |
| 137 void didStartLoading() override {} | 137 void didStartLoading() override {} |
| 138 void didReceiveData() override {} | 138 void didReceiveData() override {} |
| 139 void didFinishLoading() override; | 139 void didFinishLoading() override; |
| 140 void didFail(FileError::ErrorCode) override; | 140 void didFail(FileError::ErrorCode) override; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 153 | 153 |
| 154 void addLoader(ImageBitmapLoader*); | 154 void addLoader(ImageBitmapLoader*); |
| 155 void didFinishLoading(ImageBitmapLoader*); | 155 void didFinishLoading(ImageBitmapLoader*); |
| 156 | 156 |
| 157 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders; | 157 HeapHashSet<Member<ImageBitmapLoader>> m_pendingLoaders; |
| 158 }; | 158 }; |
| 159 | 159 |
| 160 } // namespace blink | 160 } // namespace blink |
| 161 | 161 |
| 162 #endif // ImageBitmapFactories_h | 162 #endif // ImageBitmapFactories_h |
| OLD | NEW |