2017-10-28 02:10:06 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2016-07-18 07:24:28 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef include_mozilla_gfx_ipc_RemoteCompositorSession_h
|
|
|
|
#define include_mozilla_gfx_ipc_RemoteCompositorSession_h
|
|
|
|
|
|
|
|
#include "CompositorSession.h"
|
|
|
|
#include "mozilla/gfx/Point.h"
|
|
|
|
#include "Units.h"
|
|
|
|
|
2020-04-05 06:50:33 +03:00
|
|
|
class nsIWidget;
|
|
|
|
|
2016-07-18 07:24:28 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
2020-04-05 06:50:33 +03:00
|
|
|
class APZCTreeManagerChild;
|
|
|
|
|
2016-07-18 07:24:28 +03:00
|
|
|
class RemoteCompositorSession final : public CompositorSession {
|
|
|
|
public:
|
2016-09-20 11:16:03 +03:00
|
|
|
RemoteCompositorSession(nsBaseWidget* aWidget, CompositorBridgeChild* aChild,
|
2016-07-18 07:24:28 +03:00
|
|
|
CompositorWidgetDelegate* aWidgetDelegate,
|
2016-08-29 16:18:00 +03:00
|
|
|
APZCTreeManagerChild* aAPZ,
|
2018-03-25 02:06:01 +03:00
|
|
|
const LayersId& aRootLayerTreeId);
|
2019-04-11 15:36:51 +03:00
|
|
|
virtual ~RemoteCompositorSession();
|
2016-07-18 07:24:28 +03:00
|
|
|
|
|
|
|
CompositorBridgeParent* GetInProcessBridge() const override;
|
|
|
|
void SetContentController(GeckoContentController* aController) override;
|
2016-09-21 17:26:33 +03:00
|
|
|
GeckoContentController* GetContentController();
|
2017-06-15 21:34:00 +03:00
|
|
|
nsIWidget* GetWidget() const;
|
2016-08-29 16:18:00 +03:00
|
|
|
RefPtr<IAPZCTreeManager> GetAPZCTreeManager() const override;
|
2016-07-18 07:24:28 +03:00
|
|
|
void Shutdown() override;
|
|
|
|
|
2016-09-20 11:16:03 +03:00
|
|
|
void NotifySessionLost();
|
|
|
|
|
2016-08-29 16:18:00 +03:00
|
|
|
private:
|
|
|
|
RefPtr<APZCTreeManagerChild> mAPZ;
|
2016-09-21 17:26:33 +03:00
|
|
|
RefPtr<GeckoContentController> mContentController;
|
2016-07-18 07:24:28 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // include_mozilla_gfx_ipc_RemoteCompositorSession_h
|