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

Side by Side Diff: third_party/WebKit/Source/core/offscreencanvas/OffscreenCanvas.h

Issue 2255683005: Determine if OffscreenCanvas is paintable in different rendering contexts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Canvas2DTypecast
Patch Set: enum Created 4 years, 4 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
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 #ifndef OffscreenCanvas_h 5 #ifndef OffscreenCanvas_h
6 #define OffscreenCanvas_h 6 #define OffscreenCanvas_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptState.h" 9 #include "bindings/core/v8/ScriptState.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 static CanvasRenderingContextFactory* getRenderingContextFactory(int); 69 static CanvasRenderingContextFactory* getRenderingContextFactory(int);
70 70
71 Member<CanvasRenderingContext> m_context; 71 Member<CanvasRenderingContext> m_context;
72 int m_canvasId = -1; // DOMNodeIds starts from 0, using -1 to indicate no as sociated canvas element. 72 int m_canvasId = -1; // DOMNodeIds starts from 0, using -1 to indicate no as sociated canvas element.
73 IntSize m_size; 73 IntSize m_size;
74 bool m_isNeutered = false; 74 bool m_isNeutered = false;
75 75
76 bool m_originClean; 76 bool m_originClean;
77 bool m_disableReadingFromCanvas = false; 77 bool m_disableReadingFromCanvas = false;
78 78
79 bool isPaintable() const;
80
79 // cc::SurfaceId is broken into three integer components as this can be used 81 // cc::SurfaceId is broken into three integer components as this can be used
80 // in transfer of OffscreenCanvas across threads 82 // in transfer of OffscreenCanvas across threads
81 // If this object is not created via HTMLCanvasElement.transferControlToOffs creen(), 83 // If this object is not created via HTMLCanvasElement.transferControlToOffs creen(),
82 // then the following members would remain as initialized zero values. 84 // then the following members would remain as initialized zero values.
83 uint32_t m_clientId = 0; 85 uint32_t m_clientId = 0;
84 uint32_t m_localId = 0; 86 uint32_t m_localId = 0;
85 uint64_t m_nonce = 0; 87 uint64_t m_nonce = 0;
86 }; 88 };
87 89
88 } // namespace blink 90 } // namespace blink
89 91
90 #endif // OffscreenCanvas_h 92 #endif // OffscreenCanvas_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698