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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 1280033004: Revert of Mac Overlays: Add GPU back-pressure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/gl/scoped_api.cc ('k') | ui/views/cocoa/bridged_native_widget.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_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 // Overridden from ui::LayerDelegate: 222 // Overridden from ui::LayerDelegate:
223 void OnPaintLayer(const ui::PaintContext& context) override; 223 void OnPaintLayer(const ui::PaintContext& context) override;
224 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override; 224 void OnDelegatedFrameDamage(const gfx::Rect& damage_rect_in_dip) override;
225 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 225 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
226 base::Closure PrepareForLayerBoundsChange() override; 226 base::Closure PrepareForLayerBoundsChange() override;
227 227
228 // Overridden from ui::AcceleratedWidgetMac: 228 // Overridden from ui::AcceleratedWidgetMac:
229 NSView* AcceleratedWidgetGetNSView() const override; 229 NSView* AcceleratedWidgetGetNSView() const override;
230 bool AcceleratedWidgetShouldIgnoreBackpressure() const override; 230 bool AcceleratedWidgetShouldIgnoreBackpressure() const override;
231 uint32_t AcceleratedWidgetGetDisplayIDForVSync() const override;
232 void AcceleratedWidgetSwapCompleted( 231 void AcceleratedWidgetSwapCompleted(
233 const std::vector<ui::LatencyInfo>& latency_info) override; 232 const std::vector<ui::LatencyInfo>& latency_info) override;
234 void AcceleratedWidgetHitError() override; 233 void AcceleratedWidgetHitError() override;
235 234
236 // Overridden from BridgedNativeWidgetOwner: 235 // Overridden from BridgedNativeWidgetOwner:
237 NSWindow* GetNSWindow() override; 236 NSWindow* GetNSWindow() override;
238 gfx::Vector2d GetChildWindowOffset() const override; 237 gfx::Vector2d GetChildWindowOffset() const override;
239 bool IsVisibleParent() const override; 238 bool IsVisibleParent() const override;
240 void RemoveChildWindow(BridgedNativeWidget* child) override; 239 void RemoveChildWindow(BridgedNativeWidget* child) override;
241 240
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // If true, the window has been made visible or changed shape and the window 279 // If true, the window has been made visible or changed shape and the window
281 // shadow needs to be invalidated when a frame is received for the new shape. 280 // shadow needs to be invalidated when a frame is received for the new shape.
282 bool invalidate_shadow_on_frame_swap_ = false; 281 bool invalidate_shadow_on_frame_swap_ = false;
283 282
284 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
285 }; 284 };
286 285
287 } // namespace views 286 } // namespace views
288 287
289 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/gl/scoped_api.cc ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698