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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 void GpuChildThread::DidDestroyOffscreenContext(const GURL& active_url) { | 290 void GpuChildThread::DidDestroyOffscreenContext(const GURL& active_url) { |
291 Send(new GpuHostMsg_DidDestroyOffscreenContext(active_url)); | 291 Send(new GpuHostMsg_DidDestroyOffscreenContext(active_url)); |
292 } | 292 } |
293 | 293 |
294 void GpuChildThread::DidLoseContext(bool offscreen, | 294 void GpuChildThread::DidLoseContext(bool offscreen, |
295 gpu::error::ContextLostReason reason, | 295 gpu::error::ContextLostReason reason, |
296 const GURL& active_url) { | 296 const GURL& active_url) { |
297 Send(new GpuHostMsg_DidLoseContext(offscreen, reason, active_url)); | 297 Send(new GpuHostMsg_DidLoseContext(offscreen, reason, active_url)); |
298 } | 298 } |
299 | 299 |
300 void GpuChildThread::GpuMemoryUmaStats(const gpu::GPUMemoryUmaStats& params) { | |
301 Send(new GpuHostMsg_GpuMemoryUmaStats(params)); | |
302 } | |
303 | |
304 #if defined(OS_WIN) | 300 #if defined(OS_WIN) |
305 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( | 301 void GpuChildThread::SendAcceleratedSurfaceCreatedChildWindow( |
306 gpu::SurfaceHandle parent_window, | 302 gpu::SurfaceHandle parent_window, |
307 gpu::SurfaceHandle child_window) { | 303 gpu::SurfaceHandle child_window) { |
308 Send(new GpuHostMsg_AcceleratedSurfaceCreatedChildWindow(parent_window, | 304 Send(new GpuHostMsg_AcceleratedSurfaceCreatedChildWindow(parent_window, |
309 child_window)); | 305 child_window)); |
310 } | 306 } |
311 #endif | 307 #endif |
312 | 308 |
313 void GpuChildThread::StoreShaderToDisk(int32_t client_id, | 309 void GpuChildThread::StoreShaderToDisk(int32_t client_id, |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 | 549 |
554 void GpuChildThread::BindServiceFactoryRequest( | 550 void GpuChildThread::BindServiceFactoryRequest( |
555 shell::mojom::ServiceFactoryRequest request) { | 551 shell::mojom::ServiceFactoryRequest request) { |
556 DVLOG(1) << "GPU: Binding shell::mojom::ServiceFactoryRequest"; | 552 DVLOG(1) << "GPU: Binding shell::mojom::ServiceFactoryRequest"; |
557 DCHECK(service_factory_); | 553 DCHECK(service_factory_); |
558 service_factory_bindings_.AddBinding(service_factory_.get(), | 554 service_factory_bindings_.AddBinding(service_factory_.get(), |
559 std::move(request)); | 555 std::move(request)); |
560 } | 556 } |
561 | 557 |
562 } // namespace content | 558 } // namespace content |
OLD | NEW |