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 25 matching lines...) Expand all Loading... |
36 #include "core/frame/ImageBitmap.h" | 36 #include "core/frame/ImageBitmap.h" |
37 #include "core/frame/LocalDOMWindow.h" | 37 #include "core/frame/LocalDOMWindow.h" |
38 #include "core/frame/UseCounter.h" | 38 #include "core/frame/UseCounter.h" |
39 #include "core/html/HTMLCanvasElement.h" | 39 #include "core/html/HTMLCanvasElement.h" |
40 #include "core/html/HTMLImageElement.h" | 40 #include "core/html/HTMLImageElement.h" |
41 #include "core/html/HTMLVideoElement.h" | 41 #include "core/html/HTMLVideoElement.h" |
42 #include "core/html/ImageData.h" | 42 #include "core/html/ImageData.h" |
43 #include "core/imagebitmap/ImageBitmapOptions.h" | 43 #include "core/imagebitmap/ImageBitmapOptions.h" |
44 #include "core/svg/graphics/SVGImage.h" | 44 #include "core/svg/graphics/SVGImage.h" |
45 #include "core/workers/WorkerGlobalScope.h" | 45 #include "core/workers/WorkerGlobalScope.h" |
46 #include "platform/CrossThreadFunctional.h" | |
47 #include "platform/SharedBuffer.h" | 46 #include "platform/SharedBuffer.h" |
48 #include "platform/image-decoders/ImageDecoder.h" | 47 #include "platform/image-decoders/ImageDecoder.h" |
49 #include "platform/threading/BackgroundTaskRunner.h" | 48 #include "platform/threading/BackgroundTaskRunner.h" |
50 #include "public/platform/Platform.h" | 49 #include "public/platform/Platform.h" |
51 #include "public/platform/WebThread.h" | 50 #include "public/platform/WebThread.h" |
52 #include "public/platform/WebTraceLocation.h" | 51 #include "public/platform/WebTraceLocation.h" |
| 52 #include "wtf/Functional.h" |
53 #include <memory> | 53 #include <memory> |
54 #include <v8.h> | 54 #include <v8.h> |
55 | 55 |
56 namespace blink { | 56 namespace blink { |
57 | 57 |
58 static inline ImageBitmapSource* toImageBitmapSourceInternal(const ImageBitmapSo
urceUnion& value, ExceptionState& exceptionState, bool hasCropRect) | 58 static inline ImageBitmapSource* toImageBitmapSourceInternal(const ImageBitmapSo
urceUnion& value, ExceptionState& exceptionState, bool hasCropRect) |
59 { | 59 { |
60 if (value.isHTMLImageElement()) { | 60 if (value.isHTMLImageElement()) { |
61 HTMLImageElement* imageElement = value.getAsHTMLImageElement(); | 61 HTMLImageElement* imageElement = value.getAsHTMLImageElement(); |
62 if (!imageElement || !imageElement->cachedImage()) { | 62 if (!imageElement || !imageElement->cachedImage()) { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 m_factory->didFinishLoading(this); | 269 m_factory->didFinishLoading(this); |
270 } | 270 } |
271 | 271 |
272 DEFINE_TRACE(ImageBitmapFactories::ImageBitmapLoader) | 272 DEFINE_TRACE(ImageBitmapFactories::ImageBitmapLoader) |
273 { | 273 { |
274 visitor->trace(m_factory); | 274 visitor->trace(m_factory); |
275 visitor->trace(m_resolver); | 275 visitor->trace(m_resolver); |
276 } | 276 } |
277 | 277 |
278 } // namespace blink | 278 } // namespace blink |
OLD | NEW |