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

Side by Side 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, 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/gpu/gpu_child_thread.h" 5 #include "content/gpu/gpu_child_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 } 320 }
321 321
322 void GpuChildThread::GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) { 322 void GpuChildThread::GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) {
323 Send(new GpuHostMsg_GpuMemoryUmaStats(params)); 323 Send(new GpuHostMsg_GpuMemoryUmaStats(params));
324 } 324 }
325 325
326 #if defined(OS_MACOSX) 326 #if defined(OS_MACOSX)
327 void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped( 327 void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped(
328 gpu::SurfaceHandle surface_handle, 328 gpu::SurfaceHandle surface_handle,
329 CAContextID ca_context_id, 329 CAContextID ca_context_id,
330 bool fullscreen_low_power_ca_context_valid,
331 CAContextID fullscreen_low_power_ca_context_id,
330 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, 332 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
331 const gfx::Size& size, 333 const gfx::Size& size,
332 float scale_factor, 334 float scale_factor,
333 std::vector<ui::LatencyInfo> latency_info) { 335 std::vector<ui::LatencyInfo> latency_info) {
334 AcceleratedSurfaceBuffersSwappedParams params; 336 AcceleratedSurfaceBuffersSwappedParams params;
335 params.surface_handle = surface_handle; 337 params.surface_handle = surface_handle;
336 params.ca_context_id = ca_context_id; 338 params.ca_context_id = ca_context_id;
339 params.fullscreen_low_power_ca_context_valid =
340 fullscreen_low_power_ca_context_valid;
341 params.fullscreen_low_power_ca_context_id =
342 fullscreen_low_power_ca_context_id;
337 params.io_surface = io_surface; 343 params.io_surface = io_surface;
338 params.size = size; 344 params.size = size;
339 params.scale_factor = scale_factor; 345 params.scale_factor = scale_factor;
340 params.latency_info = std::move(latency_info); 346 params.latency_info = std::move(latency_info);
341 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); 347 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params));
342 } 348 }
343 #endif 349 #endif
344 350
345 #if defined(OS_WIN) 351 #if defined(OS_WIN)
346 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( 352 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow(
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 587
582 void GpuChildThread::BindProcessControlRequest( 588 void GpuChildThread::BindProcessControlRequest(
583 mojo::InterfaceRequest<mojom::ProcessControl> request) { 589 mojo::InterfaceRequest<mojom::ProcessControl> request) {
584 DVLOG(1) << "GPU: Binding ProcessControl request"; 590 DVLOG(1) << "GPU: Binding ProcessControl request";
585 DCHECK(process_control_); 591 DCHECK(process_control_);
586 process_control_bindings_.AddBinding(process_control_.get(), 592 process_control_bindings_.AddBinding(process_control_.get(),
587 std::move(request)); 593 std::move(request));
588 } 594 }
589 595
590 } // namespace content 596 } // namespace content
OLDNEW
« 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