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 12 matching lines...) Expand all Loading... |
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 <memory> |
32 #include "bindings/core/v8/ScriptValue.h" | 32 #include "bindings/core/v8/ScriptValue.h" |
33 #include "bindings/core/v8/ScriptWrappableVisitor.h" | |
34 #include "core/CoreExport.h" | 33 #include "core/CoreExport.h" |
35 #include "core/dom/ContextLifecycleObserver.h" | 34 #include "core/dom/ContextLifecycleObserver.h" |
36 #include "core/dom/DOMTypedArray.h" | 35 #include "core/dom/DOMTypedArray.h" |
37 #include "core/dom/Document.h" | 36 #include "core/dom/Document.h" |
38 #include "core/fileapi/BlobCallback.h" | 37 #include "core/fileapi/BlobCallback.h" |
39 #include "core/html/HTMLElement.h" | 38 #include "core/html/HTMLElement.h" |
40 #include "core/html/canvas/CanvasDrawListener.h" | 39 #include "core/html/canvas/CanvasDrawListener.h" |
41 #include "core/html/canvas/CanvasImageSource.h" | 40 #include "core/html/canvas/CanvasImageSource.h" |
42 #include "core/html/canvas/CanvasRenderingContextHost.h" | 41 #include "core/html/canvas/CanvasRenderingContextHost.h" |
43 #include "core/imagebitmap/ImageBitmapSource.h" | 42 #include "core/imagebitmap/ImageBitmapSource.h" |
44 #include "core/page/PageVisibilityObserver.h" | 43 #include "core/page/PageVisibilityObserver.h" |
| 44 #include "platform/bindings/ScriptWrappableVisitor.h" |
45 #include "platform/geometry/FloatRect.h" | 45 #include "platform/geometry/FloatRect.h" |
46 #include "platform/geometry/IntSize.h" | 46 #include "platform/geometry/IntSize.h" |
47 #include "platform/graphics/CanvasSurfaceLayerBridge.h" | 47 #include "platform/graphics/CanvasSurfaceLayerBridge.h" |
48 #include "platform/graphics/GraphicsTypes.h" | 48 #include "platform/graphics/GraphicsTypes.h" |
49 #include "platform/graphics/GraphicsTypes3D.h" | 49 #include "platform/graphics/GraphicsTypes3D.h" |
50 #include "platform/graphics/ImageBufferClient.h" | 50 #include "platform/graphics/ImageBufferClient.h" |
51 #include "platform/graphics/OffscreenCanvasPlaceholder.h" | 51 #include "platform/graphics/OffscreenCanvasPlaceholder.h" |
52 #include "platform/heap/Handle.h" | 52 #include "platform/heap/Handle.h" |
53 | 53 |
54 #define CanvasDefaultInterpolationQuality kInterpolationLow | 54 #define CanvasDefaultInterpolationQuality kInterpolationLow |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 std::unique_ptr<CanvasSurfaceLayerBridge> surface_layer_bridge_; | 336 std::unique_ptr<CanvasSurfaceLayerBridge> surface_layer_bridge_; |
337 | 337 |
338 int num_frames_since_last_rendering_mode_switch_; | 338 int num_frames_since_last_rendering_mode_switch_; |
339 bool pending_rendering_mode_switch_; | 339 bool pending_rendering_mode_switch_; |
340 bool did_notify_listeners_for_current_frame_ = false; | 340 bool did_notify_listeners_for_current_frame_ = false; |
341 }; | 341 }; |
342 | 342 |
343 } // namespace blink | 343 } // namespace blink |
344 | 344 |
345 #endif // HTMLCanvasElement_h | 345 #endif // HTMLCanvasElement_h |
OLD | NEW |