1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef widget_gtk_CompositorWidgetChild_h
7 #define widget_gtk_CompositorWidgetChild_h
9 #include "GtkCompositorWidget.h"
10 #include "mozilla/widget/PCompositorWidgetChild.h"
11 #include "mozilla/widget/CompositorWidgetVsyncObserver.h"
16 class CompositorWidgetChild final
17 : public PCompositorWidgetChild
18 , public PlatformCompositorWidgetDelegate
21 CompositorWidgetChild(RefPtr
<CompositorVsyncDispatcher
> aVsyncDispatcher
,
22 RefPtr
<CompositorWidgetVsyncObserver
> aVsyncObserver
);
23 ~CompositorWidgetChild() override
;
25 mozilla::ipc::IPCResult
RecvObserveVsync() override
;
26 mozilla::ipc::IPCResult
RecvUnobserveVsync() override
;
28 void NotifyClientSizeChanged(const LayoutDeviceIntSize
& aClientSize
) override
;
31 RefPtr
<CompositorVsyncDispatcher
> mVsyncDispatcher
;
32 RefPtr
<CompositorWidgetVsyncObserver
> mVsyncObserver
;
36 } // namespace mozilla
38 #endif // widget_gtk_CompositorWidgetChild_h