Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.cpp

Issue 1836283002: Implement HTMLCanvasElement's transferControlToOffscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update interface layout tests result Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698