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

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: 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
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..d79acbf1d3d6f7e376974d79d7da955f7178627d
--- /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 will call back into the
erikchen 2016/05/05 17:47:38 s/will/must/?
ccameron 2016/05/05 19:27:18 Done.
+ // AccleratedWidgetMac to reset its FullscreenLowPowerCoordinator.
+ virtual void WillLoseAcceleratedWidget() = 0;
+};
+
+} // namespace ui
+
+#endif // UI_ACCELERATED_WIDGET_MAC_FULLSCREEN_LOW_POWER_COORDINATOR_H_

Powered by Google App Engine
This is Rietveld 408576698