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_android_InProcessAndroidCompositorWidget_h
7 #define widget_android_InProcessAndroidCompositorWidget_h
9 #include "AndroidCompositorWidget.h"
10 #include "CompositorWidget.h"
17 class InProcessAndroidCompositorWidget final
18 : public AndroidCompositorWidget
,
19 public PlatformCompositorWidgetDelegate
{
21 InProcessAndroidCompositorWidget(
22 const AndroidCompositorWidgetInitData
& aInitData
,
23 const layers::CompositorOptions
& aOptions
, nsWindow
* aWidget
);
25 // CompositorWidget overrides
27 void ObserveVsync(VsyncObserver
* aObserver
) override
;
28 nsIWidget
* RealWidget() override
;
29 CompositorWidgetDelegate
* AsDelegate() override
{ return this; }
31 // PlatformCompositorWidgetDelegate overrides
33 void NotifyClientSizeChanged(const LayoutDeviceIntSize
& aClientSize
) override
;
36 // AndroidCompositorWidget overrides
37 void OnCompositorSurfaceChanged() override
;
43 } // namespace mozilla
45 #endif // widget_android_InProcessAndroidCompositorWidget_h