2016-05-18 08:33:22 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=99: */
|
|
|
|
/* 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/. */
|
|
|
|
#include "CompositorSession.h"
|
2016-07-18 07:24:28 +03:00
|
|
|
#include "base/process_util.h"
|
|
|
|
#include "GPUChild.h"
|
|
|
|
#include "mozilla/gfx/Logging.h"
|
|
|
|
#include "mozilla/gfx/GPUProcessHost.h"
|
2016-05-18 08:33:22 +03:00
|
|
|
#include "mozilla/layers/CompositorBridgeChild.h"
|
|
|
|
#include "mozilla/layers/CompositorBridgeParent.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
2016-07-18 07:24:28 +03:00
|
|
|
using namespace gfx;
|
2016-07-01 11:15:16 +03:00
|
|
|
using namespace widget;
|
|
|
|
|
2016-07-18 07:24:27 +03:00
|
|
|
|
2016-07-18 07:24:27 +03:00
|
|
|
CompositorSession::CompositorSession(CompositorWidgetDelegate* aDelegate,
|
2016-07-18 07:24:27 +03:00
|
|
|
CompositorBridgeChild* aChild,
|
|
|
|
const uint64_t& aRootLayerTreeId)
|
2016-07-18 07:24:27 +03:00
|
|
|
: mCompositorWidgetDelegate(aDelegate),
|
2016-07-18 07:24:27 +03:00
|
|
|
mCompositorBridgeChild(aChild),
|
|
|
|
mRootLayerTreeId(aRootLayerTreeId)
|
2016-05-18 08:33:22 +03:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CompositorSession::~CompositorSession()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CompositorBridgeChild*
|
|
|
|
CompositorSession::GetCompositorBridgeChild()
|
|
|
|
{
|
|
|
|
return mCompositorBridgeChild;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|