2012-01-19 06:45:37 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim: set sw=4 ts=8 et tw=80 : */
|
2012-05-21 04:12:37 -07: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/. */
|
2012-01-19 06:45:37 -08:00
|
|
|
|
|
|
|
#ifndef mozilla_layers_ShadowLayersManager_h
|
|
|
|
#define mozilla_layers_ShadowLayersManager_h
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
2012-07-24 12:01:09 -07:00
|
|
|
class TargetConfig;
|
2013-04-24 11:42:40 -07:00
|
|
|
class LayerTransactionParent;
|
2014-02-10 20:01:20 -08:00
|
|
|
class AsyncCompositionManager;
|
2012-01-19 06:45:37 -08:00
|
|
|
|
|
|
|
class ShadowLayersManager
|
|
|
|
{
|
|
|
|
public:
|
2013-04-24 11:42:40 -07:00
|
|
|
virtual void ShadowLayersUpdated(LayerTransactionParent* aLayerTree,
|
2012-07-24 12:01:09 -07:00
|
|
|
const TargetConfig& aTargetConfig,
|
2013-12-15 21:38:42 -08:00
|
|
|
bool aIsFirstPaint,
|
|
|
|
bool aScheduleComposite) = 0;
|
2014-02-10 20:01:20 -08:00
|
|
|
|
2014-02-24 14:45:40 -08:00
|
|
|
virtual AsyncCompositionManager* GetCompositionManager(LayerTransactionParent* aLayerTree) { return nullptr; }
|
2014-03-02 16:59:58 -08:00
|
|
|
|
|
|
|
virtual void ForceComposite(LayerTransactionParent* aLayerTree) { }
|
2014-03-21 14:59:57 -07:00
|
|
|
virtual bool SetTestSampleTime(LayerTransactionParent* aLayerTree,
|
|
|
|
const TimeStamp& aTime) { return true; }
|
|
|
|
virtual void LeaveTestMode(LayerTransactionParent* aLayerTree) { }
|
2012-01-19 06:45:37 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // layers
|
|
|
|
} // mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_layers_ShadowLayersManager_h
|