Bug 1877752 - Remove now-unused use_counter error metric. r=chutten
[gecko.git] / widget / android / InProcessAndroidCompositorWidget.h
blobb7ba280d5cfbfad1130019573ed3d0d2e58752bf
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"
12 class nsWindow;
14 namespace mozilla {
15 namespace widget {
17 class InProcessAndroidCompositorWidget final
18 : public AndroidCompositorWidget,
19 public PlatformCompositorWidgetDelegate {
20 public:
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;
35 private:
36 // AndroidCompositorWidget overrides
37 void OnCompositorSurfaceChanged() override;
39 nsWindow* mWindow;
42 } // namespace widget
43 } // namespace mozilla
45 #endif // widget_android_InProcessAndroidCompositorWidget_h