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

Unified Diff: content/gpu/gpu_child_thread.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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | gpu/ipc/service/gpu_channel_manager_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 8abc98e09176a432fb04093a7ef10a8d4796a16e..98f7bc1ee6fc1c1525f14797c1f35269e957e4c4 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -327,6 +327,8 @@ void GpuChildThread::GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) {
void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped(
gpu::SurfaceHandle surface_handle,
CAContextID ca_context_id,
+ bool fullscreen_low_power_ca_context_valid,
+ CAContextID fullscreen_low_power_ca_context_id,
const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
const gfx::Size& size,
float scale_factor,
@@ -334,6 +336,10 @@ void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped(
AcceleratedSurfaceBuffersSwappedParams params;
params.surface_handle = surface_handle;
params.ca_context_id = ca_context_id;
+ params.fullscreen_low_power_ca_context_valid =
+ fullscreen_low_power_ca_context_valid;
+ params.fullscreen_low_power_ca_context_id =
+ fullscreen_low_power_ca_context_id;
params.io_surface = io_surface;
params.size = size;
params.scale_factor = scale_factor;
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | gpu/ipc/service/gpu_channel_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698