| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/offscreencanvas/OffscreenCanvas.h" | 5 #include "core/offscreencanvas/OffscreenCanvas.h" |
| 6 | 6 |
| 7 #include "core/dom/ExceptionCode.h" | 7 #include "core/dom/ExceptionCode.h" |
| 8 #include "core/html/canvas/CanvasContextCreationAttributes.h" | 8 #include "core/html/canvas/CanvasContextCreationAttributes.h" |
| 9 #include "core/html/canvas/CanvasRenderingContext.h" | 9 #include "core/html/canvas/CanvasRenderingContext.h" |
| 10 #include "core/html/canvas/CanvasRenderingContextFactory.h" | 10 #include "core/html/canvas/CanvasRenderingContextFactory.h" |
| 11 #include "platform/graphics/Image.h" |
| 11 #include "platform/graphics/ImageBuffer.h" | 12 #include "platform/graphics/ImageBuffer.h" |
| 12 #include "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h" | 13 #include "platform/graphics/OffscreenCanvasFrameDispatcherImpl.h" |
| 13 #include "wtf/MathExtras.h" | 14 #include "wtf/MathExtras.h" |
| 14 #include <memory> | 15 #include <memory> |
| 15 | 16 |
| 16 namespace blink { | 17 namespace blink { |
| 17 | 18 |
| 18 OffscreenCanvas::OffscreenCanvas(const IntSize& size) | 19 OffscreenCanvas::OffscreenCanvas(const IntSize& size) |
| 19 : m_size(size) | 20 : m_size(size) |
| 20 , m_originClean(true) | 21 , m_originClean(true) |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 m_frameDispatcher = wrapUnique(new OffscreenCanvasFrameDispatcherImpl(m_
clientId, m_localId, m_nonce, width(), height())); | 149 m_frameDispatcher = wrapUnique(new OffscreenCanvasFrameDispatcherImpl(m_
clientId, m_localId, m_nonce, width(), height())); |
| 149 return m_frameDispatcher.get(); | 150 return m_frameDispatcher.get(); |
| 150 } | 151 } |
| 151 | 152 |
| 152 DEFINE_TRACE(OffscreenCanvas) | 153 DEFINE_TRACE(OffscreenCanvas) |
| 153 { | 154 { |
| 154 visitor->trace(m_context); | 155 visitor->trace(m_context); |
| 155 } | 156 } |
| 156 | 157 |
| 157 } // namespace blink | 158 } // namespace blink |
| OLD | NEW |