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

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

Issue 1273563002: Mac Overlays: Add GPU back-pressure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use default fences 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
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;
231 void AcceleratedWidgetSwapCompleted( 232 void AcceleratedWidgetSwapCompleted(
232 const std::vector<ui::LatencyInfo>& latency_info) override; 233 const std::vector<ui::LatencyInfo>& latency_info) override;
233 void AcceleratedWidgetHitError() override; 234 void AcceleratedWidgetHitError() override;
234 235
235 // Overridden from BridgedNativeWidgetOwner: 236 // Overridden from BridgedNativeWidgetOwner:
236 NSWindow* GetNSWindow() override; 237 NSWindow* GetNSWindow() override;
237 gfx::Vector2d GetChildWindowOffset() const override; 238 gfx::Vector2d GetChildWindowOffset() const override;
238 bool IsVisibleParent() const override; 239 bool IsVisibleParent() const override;
239 void RemoveChildWindow(BridgedNativeWidget* child) override; 240 void RemoveChildWindow(BridgedNativeWidget* child) override;
240 241
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // If true, the window has been made visible or changed shape and the window 280 // If true, the window has been made visible or changed shape and the window
280 // shadow needs to be invalidated when a frame is received for the new shape. 281 // shadow needs to be invalidated when a frame is received for the new shape.
281 bool invalidate_shadow_on_frame_swap_ = false; 282 bool invalidate_shadow_on_frame_swap_ = false;
282 283
283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 284 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
284 }; 285 };
285 286
286 } // namespace views 287 } // namespace views
287 288
288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 289 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698