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

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

Issue 2018793002: Mac: Move remote layer use to GpuOutputSurfaceMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_mac
Patch Set: Review feedback Created 4 years, 7 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/accelerated_widget_mac/accelerated_widget_mac.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 13d6e16c391c62136f8b8c5fa6727742478d0b67..a320ad3e873dd3f2cf0e562f1550123ed7d98e1d 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -87,11 +87,11 @@ explicit BridgedNativeWidgetTestApi(NSWindow* window) {
bridge_ = NativeWidgetMac::GetBridgeForNativeWindow(window);
}
- // Simulate a frame swap from the compositor. Assumes scale factor of 1.0f.
+ // Simulate a frame swap from the compositor.
void SimulateFrameSwap(const gfx::Size& size) {
const float kScaleFactor = 1.0f;
- bridge_->compositor_widget_->GotFrame(
- 0, false, 0, base::ScopedCFTypeRef<IOSurfaceRef>(), size, kScaleFactor);
+ bridge_->compositor_widget_->GotIOSurfaceFrame(
+ base::ScopedCFTypeRef<IOSurfaceRef>(), size, kScaleFactor);
bridge_->AcceleratedWidgetSwapCompleted();
}
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698