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

Side by Side Diff: content/gpu/gpu_child_thread.cc

Issue 1830193002: Move buffer_presented_params_mac to content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | 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/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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 } 510 }
511 511
512 void GpuChildThread::OnGpuSwitched() { 512 void GpuChildThread::OnGpuSwitched() {
513 DVLOG(1) << "GPU: GPU has switched"; 513 DVLOG(1) << "GPU: GPU has switched";
514 // Notify observers in the GPU process. 514 // Notify observers in the GPU process.
515 ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched(); 515 ui::GpuSwitchingManager::GetInstance()->NotifyGpuSwitched();
516 } 516 }
517 517
518 #if defined(OS_MACOSX) 518 #if defined(OS_MACOSX)
519 void GpuChildThread::OnBufferPresented(const BufferPresentedParams& params) { 519 void GpuChildThread::OnBufferPresented(const BufferPresentedParams& params) {
520 if (gpu_channel_manager_) 520 if (gpu_channel_manager_) {
521 gpu_channel_manager_->BufferPresented(params); 521 gpu_channel_manager_->BufferPresented(
522 params.surface_id, params.vsync_timebase, params.vsync_interval);
523 }
522 } 524 }
523 #endif 525 #endif
524 526
525 void GpuChildThread::OnEstablishChannel(const EstablishChannelParams& params) { 527 void GpuChildThread::OnEstablishChannel(const EstablishChannelParams& params) {
526 if (!gpu_channel_manager_) 528 if (!gpu_channel_manager_)
527 return; 529 return;
528 530
529 IPC::ChannelHandle channel_handle = gpu_channel_manager_->EstablishChannel( 531 IPC::ChannelHandle channel_handle = gpu_channel_manager_->EstablishChannel(
530 params.client_id, params.client_tracing_id, params.preempts, 532 params.client_id, params.client_tracing_id, params.preempts,
531 params.allow_view_command_buffers, params.allow_real_time_streams); 533 params.allow_view_command_buffers, params.allow_real_time_streams);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 576
575 void GpuChildThread::BindProcessControlRequest( 577 void GpuChildThread::BindProcessControlRequest(
576 mojo::InterfaceRequest<mojom::ProcessControl> request) { 578 mojo::InterfaceRequest<mojom::ProcessControl> request) {
577 DVLOG(1) << "GPU: Binding ProcessControl request"; 579 DVLOG(1) << "GPU: Binding ProcessControl request";
578 DCHECK(process_control_); 580 DCHECK(process_control_);
579 process_control_bindings_.AddBinding(process_control_.get(), 581 process_control_bindings_.AddBinding(process_control_.get(),
580 std::move(request)); 582 std::move(request));
581 } 583 }
582 584
583 } // namespace content 585 } // namespace content
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698