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

Unified Diff: services/ui/common/gpu_service.cc

Issue 2133833002: gpu::GPUInfo::GPUDevice struct traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unnecessary changes Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/common/gpu_service.cc
diff --git a/services/ui/common/gpu_service.cc b/services/ui/common/gpu_service.cc
index 7b7ed5f03cf43c9ac43d7bfb9edd1bc4dd9c3c7d..e98002f00af48b8f2c22bab081287a4b574b7fd2 100644
--- a/services/ui/common/gpu_service.cc
+++ b/services/ui/common/gpu_service.cc
@@ -179,7 +179,7 @@ void GpuService::EstablishGpuChannelOnMainThreadSyncLocked() {
int client_id = 0;
mojom::ChannelHandlePtr channel_handle;
- mojom::GpuInfoPtr gpu_info;
+ gpu::GPUInfo gpu_info;
connector_->ConnectToInterface("mojo:ui", &gpu_service_);
{
base::AutoUnlock auto_unlock(lock_);
@@ -192,15 +192,15 @@ void GpuService::EstablishGpuChannelOnMainThreadSyncLocked() {
}
}
const bool locked = true;
- EstablishGpuChannelOnMainThreadDone(
- locked, client_id, std::move(channel_handle), std::move(gpu_info));
+ EstablishGpuChannelOnMainThreadDone(locked, client_id,
+ std::move(channel_handle), gpu_info);
}
void GpuService::EstablishGpuChannelOnMainThreadDone(
bool locked,
int client_id,
mojom::ChannelHandlePtr channel_handle,
- mojom::GpuInfoPtr gpu_info) {
+ const gpu::GPUInfo& gpu_info) {
DCHECK(IsMainThread());
scoped_refptr<gpu::GpuChannelHost> gpu_channel;
if (client_id) {

Powered by Google App Engine
This is Rietveld 408576698