OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 10 matching lines...) Expand all Loading... |
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #ifndef HTMLCanvasElement_h | 28 #ifndef HTMLCanvasElement_h |
29 #define HTMLCanvasElement_h | 29 #define HTMLCanvasElement_h |
30 | 30 |
| 31 #include <memory> |
31 #include "bindings/core/v8/ScriptValue.h" | 32 #include "bindings/core/v8/ScriptValue.h" |
32 #include "bindings/core/v8/ScriptWrappableVisitor.h" | 33 #include "bindings/core/v8/ScriptWrappableVisitor.h" |
33 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
34 #include "core/dom/ContextLifecycleObserver.h" | 35 #include "core/dom/ContextLifecycleObserver.h" |
35 #include "core/dom/DOMTypedArray.h" | 36 #include "core/dom/DOMTypedArray.h" |
36 #include "core/dom/Document.h" | 37 #include "core/dom/Document.h" |
37 #include "core/fileapi/BlobCallback.h" | 38 #include "core/fileapi/BlobCallback.h" |
38 #include "core/html/HTMLElement.h" | 39 #include "core/html/HTMLElement.h" |
39 #include "core/html/canvas/CanvasDrawListener.h" | 40 #include "core/html/canvas/CanvasDrawListener.h" |
40 #include "core/html/canvas/CanvasImageSource.h" | 41 #include "core/html/canvas/CanvasImageSource.h" |
41 #include "core/imagebitmap/ImageBitmapSource.h" | 42 #include "core/imagebitmap/ImageBitmapSource.h" |
42 #include "core/page/PageVisibilityObserver.h" | 43 #include "core/page/PageVisibilityObserver.h" |
43 #include "platform/geometry/FloatRect.h" | 44 #include "platform/geometry/FloatRect.h" |
44 #include "platform/geometry/IntSize.h" | 45 #include "platform/geometry/IntSize.h" |
45 #include "platform/graphics/CanvasSurfaceLayerBridge.h" | 46 #include "platform/graphics/CanvasSurfaceLayerBridge.h" |
46 #include "platform/graphics/GraphicsTypes.h" | 47 #include "platform/graphics/GraphicsTypes.h" |
47 #include "platform/graphics/GraphicsTypes3D.h" | 48 #include "platform/graphics/GraphicsTypes3D.h" |
48 #include "platform/graphics/ImageBufferClient.h" | 49 #include "platform/graphics/ImageBufferClient.h" |
49 #include "platform/graphics/OffscreenCanvasPlaceholder.h" | 50 #include "platform/graphics/OffscreenCanvasPlaceholder.h" |
50 #include "platform/heap/Handle.h" | 51 #include "platform/heap/Handle.h" |
51 #include <memory> | |
52 | 52 |
53 #define CanvasDefaultInterpolationQuality InterpolationLow | 53 #define CanvasDefaultInterpolationQuality InterpolationLow |
54 | 54 |
55 namespace blink { | 55 namespace blink { |
56 | 56 |
57 class AffineTransform; | 57 class AffineTransform; |
58 class CanvasContextCreationAttributes; | 58 class CanvasContextCreationAttributes; |
59 class CanvasRenderingContext; | 59 class CanvasRenderingContext; |
60 class CanvasRenderingContextFactory; | 60 class CanvasRenderingContextFactory; |
61 class GraphicsContext; | 61 class GraphicsContext; |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // Used for OffscreenCanvas that controls this HTML canvas element | 314 // Used for OffscreenCanvas that controls this HTML canvas element |
315 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 315 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
316 | 316 |
317 int m_numFramesSinceLastRenderingModeSwitch; | 317 int m_numFramesSinceLastRenderingModeSwitch; |
318 bool m_pendingRenderingModeSwitch; | 318 bool m_pendingRenderingModeSwitch; |
319 }; | 319 }; |
320 | 320 |
321 } // namespace blink | 321 } // namespace blink |
322 | 322 |
323 #endif // HTMLCanvasElement_h | 323 #endif // HTMLCanvasElement_h |
OLD | NEW |