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/browser/gpu/gpu_process_host.h" | 5 #include "content/browser/gpu/gpu_process_host.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 scoped_refptr<AcceleratedPresenter> presenter( | 573 scoped_refptr<AcceleratedPresenter> presenter( |
574 AcceleratedPresenter::GetForWindow(handle)); | 574 AcceleratedPresenter::GetForWindow(handle)); |
575 if (!presenter) | 575 if (!presenter) |
576 return; | 576 return; |
577 | 577 |
578 scoped_completion_runner.Release(); | 578 scoped_completion_runner.Release(); |
579 presenter->AsyncPresentAndAcknowledge( | 579 presenter->AsyncPresentAndAcknowledge( |
580 params.size, | 580 params.size, |
581 params.surface_handle, | 581 params.surface_handle, |
582 base::Bind(&AcceleratedSurfaceBuffersSwappedCompleted, | 582 base::Bind(&AcceleratedSurfaceBuffersSwappedCompleted, |
583 GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED, | 583 host_id_, |
584 params.route_id)); | 584 params.route_id)); |
585 } | 585 } |
586 | 586 |
587 void GpuProcessHost::OnAcceleratedSurfacePostSubBuffer( | 587 void GpuProcessHost::OnAcceleratedSurfacePostSubBuffer( |
588 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params) { | 588 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params) { |
589 TRACE_EVENT0("renderer", | 589 TRACE_EVENT0("renderer", |
590 "GpuProcessHost::OnAcceleratedSurfacePostSubBuffer"); | 590 "GpuProcessHost::OnAcceleratedSurfacePostSubBuffer"); |
591 | 591 |
592 NOTIMPLEMENTED(); | 592 NOTIMPLEMENTED(); |
593 } | 593 } |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
753 const IPC::ChannelHandle& channel_handle, | 753 const IPC::ChannelHandle& channel_handle, |
754 base::ProcessHandle renderer_process_for_gpu, | 754 base::ProcessHandle renderer_process_for_gpu, |
755 const content::GPUInfo& gpu_info) { | 755 const content::GPUInfo& gpu_info) { |
756 callback.Run(channel_handle, renderer_process_for_gpu, gpu_info); | 756 callback.Run(channel_handle, renderer_process_for_gpu, gpu_info); |
757 } | 757 } |
758 | 758 |
759 void GpuProcessHost::CreateCommandBufferError( | 759 void GpuProcessHost::CreateCommandBufferError( |
760 const CreateCommandBufferCallback& callback, int32 route_id) { | 760 const CreateCommandBufferCallback& callback, int32 route_id) { |
761 callback.Run(route_id); | 761 callback.Run(route_id); |
762 } | 762 } |
OLD | NEW |