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

Side by Side Diff: ui/accelerated_widget_mac/accelerated_widget_mac.mm

Issue 2003243002: Mac fullscreen low power: Ignore WasOccluded by low power window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen_sort_of
Patch Set: fix reversed conditional Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" 5 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 void AcceleratedWidgetMac::ResetFullscreenLowPowerCoordinator() { 118 void AcceleratedWidgetMac::ResetFullscreenLowPowerCoordinator() {
119 DCHECK(fslp_coordinator_); 119 DCHECK(fslp_coordinator_);
120 fslp_coordinator_ = nullptr; 120 fslp_coordinator_ = nullptr;
121 } 121 }
122 122
123 CALayer* AcceleratedWidgetMac::GetFullscreenLowPowerLayer() const { 123 CALayer* AcceleratedWidgetMac::GetFullscreenLowPowerLayer() const {
124 return fullscreen_low_power_layer_; 124 return fullscreen_low_power_layer_;
125 } 125 }
126 126
127 bool AcceleratedWidgetMac::MightBeInFullscreenLowPowerMode() const {
128 return fslp_coordinator_;
129 }
130
127 bool AcceleratedWidgetMac::HasFrameOfSize( 131 bool AcceleratedWidgetMac::HasFrameOfSize(
128 const gfx::Size& dip_size) const { 132 const gfx::Size& dip_size) const {
129 return last_swap_size_dip_ == dip_size; 133 return last_swap_size_dip_ == dip_size;
130 } 134 }
131 135
132 void AcceleratedWidgetMac::GetVSyncParameters( 136 void AcceleratedWidgetMac::GetVSyncParameters(
133 base::TimeTicks* timebase, base::TimeDelta* interval) const { 137 base::TimeTicks* timebase, base::TimeDelta* interval) const {
134 if (view_) { 138 if (view_) {
135 view_->AcceleratedWidgetGetVSyncParameters(timebase, interval); 139 view_->AcceleratedWidgetGetVSyncParameters(timebase, interval);
136 } else { 140 } else {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 fullscreen_low_power_ca_context_id, 301 fullscreen_low_power_ca_context_id,
298 io_surface, pixel_size, scale_factor); 302 io_surface, pixel_size, scale_factor);
299 if (vsync_timebase && vsync_interval) { 303 if (vsync_timebase && vsync_interval) {
300 accelerated_widget_mac->GetVSyncParameters(vsync_timebase, 304 accelerated_widget_mac->GetVSyncParameters(vsync_timebase,
301 vsync_interval); 305 vsync_interval);
302 } 306 }
303 } 307 }
304 } 308 }
305 309
306 } // namespace ui 310 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698