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