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

Unified Diff: ui/views/widget/native_widget_mac_unittest.mm

Issue 1416493010: Clean up Mac swap acknowledgement code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update latency info Created 5 years, 2 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
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac_unittest.mm
diff --git a/ui/views/widget/native_widget_mac_unittest.mm b/ui/views/widget/native_widget_mac_unittest.mm
index a81b8b140b692c12973eb27c04fed4458eebe615..6bb3f1d47460682102555f02d549f6fec1fe86f2 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -65,10 +65,9 @@ class BridgedNativeWidgetTestApi {
// Simulate a frame swap from the compositor. Assumes scale factor of 1.0f.
void SimulateFrameSwap(const gfx::Size& size) {
const float kScaleFactor = 1.0f;
- bridge_->compositor_widget_->GotIOSurfaceFrame(
- base::ScopedCFTypeRef<IOSurfaceRef>(), size, kScaleFactor, false);
- std::vector<ui::LatencyInfo> latency_info;
- bridge_->AcceleratedWidgetSwapCompleted(latency_info);
+ bridge_->compositor_widget_->GotFrame(
+ 0, base::ScopedCFTypeRef<IOSurfaceRef>(), size, kScaleFactor);
+ bridge_->AcceleratedWidgetSwapCompleted();
}
private:
« no previous file with comments | « ui/views/cocoa/bridged_native_widget.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698