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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 // For Canvas HitRegions | 219 // For Canvas HitRegions |
220 bool isSupportedInteractiveCanvasFallback(const Element&); | 220 bool isSupportedInteractiveCanvasFallback(const Element&); |
221 HitTestCanvasResult* getControlAndIdIfHitRegionExists(const LayoutPoint&); | 221 HitTestCanvasResult* getControlAndIdIfHitRegionExists(const LayoutPoint&); |
222 String getIdFromControl(const Element*); | 222 String getIdFromControl(const Element*); |
223 | 223 |
224 // For OffscreenCanvas that controls this html canvas element | 224 // For OffscreenCanvas that controls this html canvas element |
225 CanvasSurfaceLayerBridge* surfaceLayerBridge() const { | 225 CanvasSurfaceLayerBridge* surfaceLayerBridge() const { |
226 return m_surfaceLayerBridge.get(); | 226 return m_surfaceLayerBridge.get(); |
227 } | 227 } |
228 bool createSurfaceLayer(); | 228 bool createSurfaceLayer(int canvasId); |
229 | 229 |
230 void detachContext() { m_context = nullptr; } | 230 void detachContext() { m_context = nullptr; } |
231 | 231 |
232 protected: | 232 protected: |
233 void didMoveToNewDocument(Document& oldDocument) override; | 233 void didMoveToNewDocument(Document& oldDocument) override; |
234 | 234 |
235 private: | 235 private: |
236 explicit HTMLCanvasElement(Document&); | 236 explicit HTMLCanvasElement(Document&); |
237 void dispose(); | 237 void dispose(); |
238 | 238 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 // Used for OffscreenCanvas that controls this HTML canvas element | 302 // Used for OffscreenCanvas that controls this HTML canvas element |
303 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 303 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
304 | 304 |
305 int m_numFramesSinceLastRenderingModeSwitch; | 305 int m_numFramesSinceLastRenderingModeSwitch; |
306 bool m_pendingRenderingModeSwitch; | 306 bool m_pendingRenderingModeSwitch; |
307 }; | 307 }; |
308 | 308 |
309 } // namespace blink | 309 } // namespace blink |
310 | 310 |
311 #endif // HTMLCanvasElement_h | 311 #endif // HTMLCanvasElement_h |
OLD | NEW |