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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 9831002: Bug: wrong host ID was used to route SwapBuffers ack back to GPU process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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/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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698