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

Unified Diff: services/gles2/command_buffer_type_conversions.cc

Issue 1408793006: Convert "return local_var.Pass();" to "return local_var;". (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « services/files/files_impl.cc ('k') | services/http_server/http_server_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/gles2/command_buffer_type_conversions.cc
diff --git a/services/gles2/command_buffer_type_conversions.cc b/services/gles2/command_buffer_type_conversions.cc
index d08ec4d4cec485468b6ea30d33b21c6b598158b5..2f2858c2aa49c4b16e6271476e3dd8345e6b3277 100644
--- a/services/gles2/command_buffer_type_conversions.cc
+++ b/services/gles2/command_buffer_type_conversions.cc
@@ -17,7 +17,7 @@ TypeConverter<CommandBufferStatePtr, gpu::CommandBuffer::State>::Convert(
result->error = input.error;
result->context_lost_reason = input.context_lost_reason;
result->generation = input.generation;
- return result.Pass();
+ return result;
}
gpu::CommandBuffer::State
@@ -40,7 +40,7 @@ TypeConverter<GpuShaderPrecisionPtr, gpu::Capabilities::ShaderPrecision>::
result->min_range = input.min_range;
result->max_range = input.max_range;
result->precision = input.precision;
- return result.Pass();
+ return result;
}
gpu::Capabilities::ShaderPrecision TypeConverter<
@@ -63,7 +63,7 @@ TypeConverter<GpuPerStagePrecisionsPtr, gpu::Capabilities::PerStagePrecisions>::
result->low_float = GpuShaderPrecision::From(input.low_float);
result->medium_float = GpuShaderPrecision::From(input.medium_float);
result->high_float = GpuShaderPrecision::From(input.high_float);
- return result.Pass();
+ return result;
}
gpu::Capabilities::PerStagePrecisions TypeConverter<
@@ -121,7 +121,7 @@ TypeConverter<GpuCapabilitiesPtr, gpu::Capabilities>::Convert(
result->blend_equation_advanced = input.blend_equation_advanced;
result->blend_equation_advanced_coherent =
input.blend_equation_advanced_coherent;
- return result.Pass();
+ return result;
}
gpu::Capabilities TypeConverter<gpu::Capabilities, GpuCapabilitiesPtr>::Convert(
« no previous file with comments | « services/files/files_impl.cc ('k') | services/http_server/http_server_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698