Chromium Code Reviews| Index: third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h |
| diff --git a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h |
| similarity index 43% |
| copy from third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h |
| copy to third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h |
| index 404ec0330f6ca96d58ad2bf0aa19a5a203c725b9..3f172e14433884307648f139f2301b2d3ff59391 100644 |
| --- a/third_party/WebKit/Source/modules/csspaint/WindowPaintWorklet.h |
| +++ b/third_party/WebKit/Source/modules/compositorworker/WindowAnimationWorklet.h |
| @@ -2,8 +2,8 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef WindowPaintWorklet_h |
| -#define WindowPaintWorklet_h |
| +#ifndef WindowAnimationWorklet_h |
| +#define WindowAnimationWorklet_h |
| #include "core/frame/DOMWindowProperty.h" |
| #include "modules/ModulesExport.h" |
| @@ -14,25 +14,25 @@ namespace blink { |
| class DOMWindow; |
| class ExecutionContext; |
| -class PaintWorklet; |
| +class AnimationWorklet; |
| class Worklet; |
| -class MODULES_EXPORT WindowPaintWorklet final : public GarbageCollected<WindowPaintWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty { |
| - USING_GARBAGE_COLLECTED_MIXIN(WindowPaintWorklet); |
| +class MODULES_EXPORT WindowAnimationWorklet final : public GarbageCollected<WindowAnimationWorklet>, public Supplement<LocalDOMWindow>, public DOMWindowProperty { |
| + USING_GARBAGE_COLLECTED_MIXIN(WindowAnimationWorklet); |
| public: |
| - static WindowPaintWorklet& from(LocalDOMWindow&); |
| - static Worklet* paintWorklet(ExecutionContext*, DOMWindow&); |
| - PaintWorklet* paintWorklet(ExecutionContext*) const; |
| + static WindowAnimationWorklet& from(LocalDOMWindow&); |
| + static Worklet* animationWorklet(ExecutionContext*, DOMWindow&); |
| + AnimationWorklet* animationWorklet(ExecutionContext*) const; |
| DECLARE_TRACE(); |
| private: |
| - explicit WindowPaintWorklet(LocalDOMWindow&); |
| + explicit WindowAnimationWorklet(LocalDOMWindow&); |
| static const char* supplementName(); |
| - mutable Member<PaintWorklet> m_paintWorklet; |
| + mutable Member<AnimationWorklet> m_animationWorklet; |
|
yhirano
2016/07/28 14:48:17
Why is this mutable? Can't we remove the const qua
ikilpatrick
2016/07/28 20:57:05
Done, not sure why, I'll send a patch for paintwor
|
| }; |
| } // namespace blink |
| -#endif // WindowPaintWorklet_h |
| +#endif // WindowAnimationWorklet_h |