| 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 void restoreCanvasMatrixClipStack(PaintCanvas*) const override; | 204 void restoreCanvasMatrixClipStack(PaintCanvas*) const override; |
| 205 | 205 |
| 206 // ImageBitmapSource implementation | 206 // ImageBitmapSource implementation |
| 207 IntSize bitmapSourceSize() const override; | 207 IntSize bitmapSourceSize() const override; |
| 208 ScriptPromise createImageBitmap(ScriptState*, | 208 ScriptPromise createImageBitmap(ScriptState*, |
| 209 EventTarget&, | 209 EventTarget&, |
| 210 Optional<IntRect> cropRect, | 210 Optional<IntRect> cropRect, |
| 211 const ImageBitmapOptions&, | 211 const ImageBitmapOptions&, |
| 212 ExceptionState&) override; | 212 ExceptionState&) override; |
| 213 | 213 |
| 214 // OffscreenCanvasPlaceholder implementation. |
| 215 void setPlaceholderFrame(RefPtr<StaticBitmapImage>, |
| 216 WeakPtr<OffscreenCanvasFrameDispatcher>, |
| 217 RefPtr<WebTaskRunner>, |
| 218 unsigned resourceId) override; |
| 214 DECLARE_VIRTUAL_TRACE(); | 219 DECLARE_VIRTUAL_TRACE(); |
| 215 | 220 |
| 216 DECLARE_VIRTUAL_TRACE_WRAPPERS(); | 221 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 217 | 222 |
| 218 void createImageBufferUsingSurfaceForTesting( | 223 void createImageBufferUsingSurfaceForTesting( |
| 219 std::unique_ptr<ImageBufferSurface>); | 224 std::unique_ptr<ImageBufferSurface>); |
| 220 | 225 |
| 221 static void registerRenderingContextFactory( | 226 static void registerRenderingContextFactory( |
| 222 std::unique_ptr<CanvasRenderingContextFactory>); | 227 std::unique_ptr<CanvasRenderingContextFactory>); |
| 223 void updateExternallyAllocatedMemory() const; | 228 void updateExternallyAllocatedMemory() const; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Used for OffscreenCanvas that controls this HTML canvas element | 319 // Used for OffscreenCanvas that controls this HTML canvas element |
| 315 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; | 320 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; |
| 316 | 321 |
| 317 int m_numFramesSinceLastRenderingModeSwitch; | 322 int m_numFramesSinceLastRenderingModeSwitch; |
| 318 bool m_pendingRenderingModeSwitch; | 323 bool m_pendingRenderingModeSwitch; |
| 319 }; | 324 }; |
| 320 | 325 |
| 321 } // namespace blink | 326 } // namespace blink |
| 322 | 327 |
| 323 #endif // HTMLCanvasElement_h | 328 #endif // HTMLCanvasElement_h |
| OLD | NEW |