Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Unified Diff: ui/accelerated_widget_mac/accelerated_widget_mac.h

Issue 1952163002: Mac fullscreen low power video: Add FullscreenLowPowerControllerCocoa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumb_widget
Patch Set: Rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accelerated_widget_mac/BUILD.gn ('k') | ui/accelerated_widget_mac/accelerated_widget_mac.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/accelerated_widget_mac/BUILD.gn ('k') | ui/accelerated_widget_mac/accelerated_widget_mac.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698