| Index: ui/accelerated_widget_mac/accelerated_widget_mac.h
|
| diff --git a/ui/accelerated_widget_mac/accelerated_widget_mac.h b/ui/accelerated_widget_mac/accelerated_widget_mac.h
|
| index 3f7cebe7fdd6b02e574edc84419003d5324e01c3..cf26ad6febcb1ff80f1645791d37f31f6bf83dd4 100644
|
| --- a/ui/accelerated_widget_mac/accelerated_widget_mac.h
|
| +++ b/ui/accelerated_widget_mac/accelerated_widget_mac.h
|
| @@ -31,6 +31,7 @@ class SoftwareFrameData;
|
| namespace ui {
|
|
|
| class AcceleratedWidgetMac;
|
| +class FullscreenLowPowerCoordinator;
|
|
|
| // A class through which an AcceleratedWidget may be bound to draw the contents
|
| // of an NSView. An AcceleratedWidget may be bound to multiple different views
|
| @@ -59,6 +60,12 @@ class ACCELERATED_WIDGET_MAC_EXPORT AcceleratedWidgetMac {
|
| void SetNSView(AcceleratedWidgetMacNSView* view);
|
| void ResetNSView();
|
|
|
| + // Fullscreen low power mode interface.
|
| + void SetFullscreenLowPowerCoordinator(
|
| + FullscreenLowPowerCoordinator* coordinator);
|
| + void ResetFullscreenLowPowerCoordinator();
|
| + CALayer* GetFullscreenLowPowerLayer() const;
|
| +
|
| // Return true if the last frame swapped has a size in DIP of |dip_size|.
|
| bool HasFrameOfSize(const gfx::Size& dip_size) const;
|
|
|
| @@ -99,6 +106,10 @@ class ACCELERATED_WIDGET_MAC_EXPORT AcceleratedWidgetMac {
|
| // A phony NSView handle used to identify this.
|
| gfx::AcceleratedWidget native_widget_;
|
|
|
| + // The fullscreen low power coordinator. Weak, reset by
|
| + // SetFullscreenLowPowerCoordinator when it is destroyed.
|
| + FullscreenLowPowerCoordinator* fslp_coordinator_ = nullptr;
|
| +
|
| // A flipped layer, which acts as the parent of the compositing and software
|
| // layers. This layer is flipped so that the we don't need to recompute the
|
| // origin for sub-layers when their position changes (this is impossible when
|
|
|