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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.cc

Issue 1918723002: Mac fullscreen low power: Plumb through to AcceleratedWidgetMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumb
Patch Set: Fix widget test Created 4 years, 8 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
Index: content/browser/gpu/gpu_process_host_ui_shim.cc
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.cc b/content/browser/gpu/gpu_process_host_ui_shim.cc
index 217d21fe57d644fcd689a7cbeef2c714350949b1..bc81d2c55d6f49415fb92a3e65d97c54382731c8 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.cc
+++ b/content/browser/gpu/gpu_process_host_ui_shim.cc
@@ -256,10 +256,12 @@ void GpuProcessHostUIShim::OnAcceleratedSurfaceBuffersSwapped(
io_surface.reset(IOSurfaceLookupFromMachPort(params.io_surface));
}
- ui::AcceleratedWidgetMacGotFrame(native_widget, ca_context_id, io_surface,
- params.size, params.scale_factor,
- &ack_params.vsync_timebase,
- &ack_params.vsync_interval);
+ ui::AcceleratedWidgetMacGotFrame(
+ native_widget, ca_context_id,
+ params.fullscreen_low_power_ca_context_valid,
+ params.fullscreen_low_power_ca_context_id, io_surface, params.size,
+ params.scale_factor, &ack_params.vsync_timebase,
+ &ack_params.vsync_interval);
} else {
TRACE_EVENT0("browser", "Skipping recycled surface frame");
}

Powered by Google App Engine
This is Rietveld 408576698