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

Unified Diff: mojo/gpu/texture_cache.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 | « mojo/edk/test/test_utils.cc ('k') | mojo/gpu/texture_uploader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/texture_cache.cc
diff --git a/mojo/gpu/texture_cache.cc b/mojo/gpu/texture_cache.cc
index aa9478d58e1b95d49a78b7a8911982e2d5da5280..f97a2ed085051fd05106418b6e0d16f9ea41aa5d 100644
--- a/mojo/gpu/texture_cache.cc
+++ b/mojo/gpu/texture_cache.cc
@@ -57,7 +57,7 @@ scoped_ptr<TextureCache::TextureInfo> TextureCache::GetTexture(
if (texture_size.width == requested_size.width &&
texture_size.height == requested_size.height) {
glWaitSyncPointCHROMIUM(sync_point);
- return texture_info.Pass();
+ return texture_info;
}
}
@@ -72,7 +72,7 @@ scoped_ptr<TextureCache::TextureInfo> TextureCache::GetTexture(
next_resource_id_++;
scoped_ptr<TextureInfo> texture_info(
new TextureInfo(new_texture.Pass(), next_resource_id_));
- return texture_info.Pass();
+ return texture_info;
}
void TextureCache::NotifyPendingResourceReturn(
« no previous file with comments | « mojo/edk/test/test_utils.cc ('k') | mojo/gpu/texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698