blob: 31aad75657e9f93bb484684b9e49c77bf5e1f1b8 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h"
@class CALayer;
namespace ui {
class ACCELERATED_WIDGET_MAC_EXPORT FullscreenLowPowerCoordinator {
// This is called whenever the AcceleratedWidgetMac gets a frame, and
// indicates to the FullscreenLowPowerCoordinator whether or not the low power
// layer has valid content for this frame.
virtual void SetLowPowerLayerValid(bool valid) = 0;
// This is to be called if the AcceleratedWidget is going to be deactivated
// or destroyed. In this call, the coordinator must call back into the
// AccleratedWidgetMac to reset its FullscreenLowPowerCoordinator.
virtual void WillLoseAcceleratedWidget() = 0;
} // namespace ui