Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 Send(new GpuHostMsg_GpuMemoryUmaStats(params)); | 322 Send(new GpuHostMsg_GpuMemoryUmaStats(params)); |
| 323 } | 323 } |
| 324 | 324 |
| 325 void GpuChildThread::RemoveSubscription(int32_t client_id, | 325 void GpuChildThread::RemoveSubscription(int32_t client_id, |
| 326 unsigned int target) { | 326 unsigned int target) { |
| 327 Send(new GpuHostMsg_RemoveSubscription(client_id, target)); | 327 Send(new GpuHostMsg_RemoveSubscription(client_id, target)); |
| 328 } | 328 } |
| 329 | 329 |
| 330 #if defined(OS_MACOSX) | 330 #if defined(OS_MACOSX) |
| 331 void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped( | 331 void GpuChildThread::SendAcceleratedSurfaceBuffersSwapped( |
| 332 const AcceleratedSurfaceBuffersSwappedParams& params) { | 332 int32_t surface_id, |
| 333 CAContextID ca_context_id, | |
| 334 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, | |
| 335 const gfx::Size& size, | |
| 336 float scale_factor, | |
| 337 const std::vector<ui::LatencyInfo>& latency_info) { | |
|
piman
2016/03/24 18:02:21
nit: make this "std::vector<ui::LatencyInfo> laten
Fady Samuel
2016/03/24 18:18:03
Done.
| |
| 338 AcceleratedSurfaceBuffersSwappedParams params; | |
| 339 params.surface_id = surface_id; | |
| 340 params.ca_context_id = ca_context_id; | |
| 341 params.io_surface = io_surface; | |
| 342 params.size = size; | |
| 343 params.scale_factor = scale_factor; | |
| 344 params.latency_info = latency_info; | |
| 333 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); | 345 Send(new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params)); |
| 334 } | 346 } |
| 335 #endif | 347 #endif |
| 336 | 348 |
| 337 #if defined(OS_WIN) | 349 #if defined(OS_WIN) |
| 338 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( | 350 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( |
| 339 gpu::SurfaceHandle parent_window, | 351 gpu::SurfaceHandle parent_window, |
| 340 gpu::SurfaceHandle child_window) { | 352 gpu::SurfaceHandle child_window) { |
| 341 Send(new GpuHostMsg_AcceleratedSurfaceCreatedChildWindow(parent_window, | 353 Send(new GpuHostMsg_AcceleratedSurfaceCreatedChildWindow(parent_window, |
| 342 child_window)); | 354 child_window)); |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 562 | 574 |
| 563 void GpuChildThread::BindProcessControlRequest( | 575 void GpuChildThread::BindProcessControlRequest( |
| 564 mojo::InterfaceRequest<mojom::ProcessControl> request) { | 576 mojo::InterfaceRequest<mojom::ProcessControl> request) { |
| 565 DVLOG(1) << "GPU: Binding ProcessControl request"; | 577 DVLOG(1) << "GPU: Binding ProcessControl request"; |
| 566 DCHECK(process_control_); | 578 DCHECK(process_control_); |
| 567 process_control_bindings_.AddBinding(process_control_.get(), | 579 process_control_bindings_.AddBinding(process_control_.get(), |
| 568 std::move(request)); | 580 std::move(request)); |
| 569 } | 581 } |
| 570 | 582 |
| 571 } // namespace content | 583 } // namespace content |
| OLD | NEW |