| 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/fileapi/Blob.h" | 8 #include "core/fileapi/Blob.h" |
| 9 #include "core/html/ImageData.h" | 9 #include "core/html/ImageData.h" |
| 10 #include "core/html/canvas/CanvasAsyncBlobCreator.h" | 10 #include "core/html/canvas/CanvasAsyncBlobCreator.h" |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 230 |
| 231 CanvasAsyncBlobCreator* asyncCreator = CanvasAsyncBlobCreator::create( | 231 CanvasAsyncBlobCreator* asyncCreator = CanvasAsyncBlobCreator::create( |
| 232 imageData->data(), encodingMimeType, imageData->size(), startTime, | 232 imageData->data(), encodingMimeType, imageData->size(), startTime, |
| 233 document, resolver); | 233 document, resolver); |
| 234 | 234 |
| 235 asyncCreator->scheduleAsyncBlobCreation(options.quality()); | 235 asyncCreator->scheduleAsyncBlobCreation(options.quality()); |
| 236 | 236 |
| 237 return resolver->promise(); | 237 return resolver->promise(); |
| 238 } | 238 } |
| 239 | 239 |
| 240 ExecutionContext* OffscreenCanvas::getExecutionContext() const { |
| 241 return m_context->getExecutionContext(); |
| 242 } |
| 243 |
| 240 DEFINE_TRACE(OffscreenCanvas) { | 244 DEFINE_TRACE(OffscreenCanvas) { |
| 241 visitor->trace(m_context); | 245 visitor->trace(m_context); |
| 246 EventTarget::trace(visitor); |
| 242 } | 247 } |
| 243 | 248 |
| 244 } // namespace blink | 249 } // namespace blink |
| OLD | NEW |