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

Unified Diff: ui/accelerated_widget_mac/fullscreen_low_power_coordinator.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/accelerated_widget_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h
diff --git a/ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h b/ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h
new file mode 100644
index 0000000000000000000000000000000000000000..31aad75657e9f93bb484684b9e49c77bf5e1f1b8
--- /dev/null
+++ b/ui/accelerated_widget_mac/fullscreen_low_power_coordinator.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_
+#define UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_
+
+#include "ui/accelerated_widget_mac/accelerated_widget_mac_export.h"
+
+@class CALayer;
+
+namespace ui {
+
+class ACCELERATED_WIDGET_MAC_EXPORT FullscreenLowPowerCoordinator {
+ public:
+ // 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
+
+#endif // UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698