michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ michael@0: /* vim: set sw=4 ts=8 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_layers_ShadowLayersManager_h michael@0: #define mozilla_layers_ShadowLayersManager_h michael@0: michael@0: namespace mozilla { michael@0: namespace layers { michael@0: michael@0: class TargetConfig; michael@0: class LayerTransactionParent; michael@0: class AsyncCompositionManager; michael@0: michael@0: class ShadowLayersManager michael@0: { michael@0: public: michael@0: virtual void ShadowLayersUpdated(LayerTransactionParent* aLayerTree, michael@0: const TargetConfig& aTargetConfig, michael@0: bool aIsFirstPaint, michael@0: bool aScheduleComposite) = 0; michael@0: michael@0: virtual AsyncCompositionManager* GetCompositionManager(LayerTransactionParent* aLayerTree) { return nullptr; } michael@0: michael@0: virtual void ForceComposite(LayerTransactionParent* aLayerTree) { } michael@0: virtual bool SetTestSampleTime(LayerTransactionParent* aLayerTree, michael@0: const TimeStamp& aTime) { return true; } michael@0: virtual void LeaveTestMode(LayerTransactionParent* aLayerTree) { } michael@0: }; michael@0: michael@0: } // layers michael@0: } // mozilla michael@0: michael@0: #endif // mozilla_layers_ShadowLayersManager_h