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 "modules/offscreencanvas/OffscreenCanvas.h" | 5 #include "modules/offscreencanvas/OffscreenCanvas.h" |
6 | 6 |
7 #include "core/dom/ExceptionCode.h" | 7 #include "core/dom/ExceptionCode.h" |
8 #if !ENABLE(OILPAN) | 8 #if !ENABLE(OILPAN) |
9 #include "core/frame/ImageBitmap.h" // So ~RefPtr can call unref() | 9 #include "core/frame/ImageBitmap.h" // So ~RefPtr can call unref() |
10 #endif | 10 #endif |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 { | 103 { |
104 OffscreenCanvasRenderingContext::ContextType type = renderingContextFactory-
>getContextType(); | 104 OffscreenCanvasRenderingContext::ContextType type = renderingContextFactory-
>getContextType(); |
105 ASSERT(type < OffscreenCanvasRenderingContext::ContextTypeCount); | 105 ASSERT(type < OffscreenCanvasRenderingContext::ContextTypeCount); |
106 ASSERT(!renderingContextFactories()[type]); | 106 ASSERT(!renderingContextFactories()[type]); |
107 renderingContextFactories()[type] = renderingContextFactory; | 107 renderingContextFactories()[type] = renderingContextFactory; |
108 } | 108 } |
109 | 109 |
110 DEFINE_TRACE(OffscreenCanvas) | 110 DEFINE_TRACE(OffscreenCanvas) |
111 { | 111 { |
112 visitor->trace(m_context); | 112 visitor->trace(m_context); |
| 113 visitor->trace(m_canvas); |
113 } | 114 } |
114 | 115 |
115 } // namespace blink | 116 } // namespace blink |
OLD | NEW |