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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 void GpuChildThread::DidDestroyOffscreenContext(const GURL& active_url) { | 311 void GpuChildThread::DidDestroyOffscreenContext(const GURL& active_url) { |
312 Send(new GpuHostMsg_DidDestroyOffscreenContext(active_url)); | 312 Send(new GpuHostMsg_DidDestroyOffscreenContext(active_url)); |
313 } | 313 } |
314 | 314 |
315 void GpuChildThread::DidLoseContext(bool offscreen, | 315 void GpuChildThread::DidLoseContext(bool offscreen, |
316 gpu::error::ContextLostReason reason, | 316 gpu::error::ContextLostReason reason, |
317 const GURL& active_url) { | 317 const GURL& active_url) { |
318 Send(new GpuHostMsg_DidLoseContext(offscreen, reason, active_url)); | 318 Send(new GpuHostMsg_DidLoseContext(offscreen, reason, active_url)); |
319 } | 319 } |
320 | 320 |
321 void GpuChildThread::GpuMemoryUmaStats(const GPUMemoryUmaStats& params) { | 321 void GpuChildThread::GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) { |
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( |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 void GpuChildThread::BindProcessControlRequest( | 563 void GpuChildThread::BindProcessControlRequest( |
564 mojo::InterfaceRequest<mojom::ProcessControl> request) { | 564 mojo::InterfaceRequest<mojom::ProcessControl> request) { |
565 DVLOG(1) << "GPU: Binding ProcessControl request"; | 565 DVLOG(1) << "GPU: Binding ProcessControl request"; |
566 DCHECK(process_control_); | 566 DCHECK(process_control_); |
567 process_control_bindings_.AddBinding(process_control_.get(), | 567 process_control_bindings_.AddBinding(process_control_.get(), |
568 std::move(request)); | 568 std::move(request)); |
569 } | 569 } |
570 | 570 |
571 } // namespace content | 571 } // namespace content |
OLD | NEW |