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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 821453003: Update legacy Tuple-using code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index b3e2fac0a6eedbbaa75ba8363adc874371dcb555..e60586ca14a4f626283d76b997c2bd6584f61131 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -111,7 +111,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
}
if (message.type() == GpuCommandBufferMsg_InsertSyncPoint::ID) {
- Tuple1<bool> retire;
+ Tuple<bool> retire;
IPC::Message* reply = IPC::SyncMessage::GenerateReply(&message);
if (!GpuCommandBufferMsg_InsertSyncPoint::ReadSendParam(&message,
&retire)) {
@@ -119,7 +119,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
Send(reply);
return true;
}
- if (!future_sync_points_ && !retire.a) {
+ if (!future_sync_points_ && !get<0>(retire)) {
LOG(ERROR) << "Untrusted contexts can't create future sync points";
reply->set_reply_error();
Send(reply);
@@ -134,7 +134,7 @@ class GpuChannelMessageFilter : public IPC::MessageFilter {
gpu_channel_,
sync_point_manager_,
message.routing_id(),
- retire.a,
+ get<0>(retire),
sync_point));
handled = true;
}
« no previous file with comments | « content/child/threaded_data_provider.cc ('k') | content/common/gpu/media/android_video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698