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

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

Issue 2062463002: Mac: Flip fullscreen low power layer geometry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « no previous file | ui/accelerated_widget_mac/accelerated_widget_mac.mm » ('j') | 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 #ifndef UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ 5 #ifndef UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_
6 #define UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ 6 #define UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <IOSurface/IOSurface.h> 9 #include <IOSurface/IOSurface.h>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 FullscreenLowPowerCoordinator* fslp_coordinator_ = nullptr; 94 FullscreenLowPowerCoordinator* fslp_coordinator_ = nullptr;
95 95
96 // A flipped layer, which acts as the parent of the compositing and software 96 // A flipped layer, which acts as the parent of the compositing and software
97 // layers. This layer is flipped so that the we don't need to recompute the 97 // layers. This layer is flipped so that the we don't need to recompute the
98 // origin for sub-layers when their position changes (this is impossible when 98 // origin for sub-layers when their position changes (this is impossible when
99 // using remote layers, as their size change cannot be synchronized with the 99 // using remote layers, as their size change cannot be synchronized with the
100 // window). This indirection is needed because flipping hosted layers (like 100 // window). This indirection is needed because flipping hosted layers (like
101 // |background_layer_| of RenderWidgetHostViewCocoa) leads to unpredictable 101 // |background_layer_| of RenderWidgetHostViewCocoa) leads to unpredictable
102 // behavior. 102 // behavior.
103 base::scoped_nsobject<CALayer> flipped_layer_; 103 base::scoped_nsobject<CALayer> flipped_layer_;
104 base::scoped_nsobject<CALayer> fslp_flipped_layer_;
104 105
105 // A CALayer with content provided by the output surface. 106 // A CALayer with content provided by the output surface.
106 base::scoped_nsobject<CALayer> content_layer_; 107 base::scoped_nsobject<CALayer> content_layer_;
107 base::scoped_nsobject<CALayer> fullscreen_low_power_layer_; 108 base::scoped_nsobject<CALayer> fullscreen_low_power_layer_;
108 109
109 // A CALayer that has its content set to an IOSurface. 110 // A CALayer that has its content set to an IOSurface.
110 base::scoped_nsobject<CALayer> io_surface_layer_; 111 base::scoped_nsobject<CALayer> io_surface_layer_;
111 112
112 // The size in DIP of the last swap received from |compositor_|. 113 // The size in DIP of the last swap received from |compositor_|.
113 gfx::Size last_swap_size_dip_; 114 gfx::Size last_swap_size_dip_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(AcceleratedWidgetMac); 116 DISALLOW_COPY_AND_ASSIGN(AcceleratedWidgetMac);
116 }; 117 };
117 118
118 } // namespace ui 119 } // namespace ui
119 120
120 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_ 121 #endif // UI_ACCELERATED_WIDGET_MAC_ACCELERATED_WIDGET_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/accelerated_widget_mac/accelerated_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698