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

Side by Side Diff: mojo/gpu/texture_uploader.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, 1 month 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 | « mojo/gpu/texture_cache.cc ('k') | mojo/message_pump/handle_watcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mojo/gpu/texture_uploader.h" 5 #include "mojo/gpu/texture_uploader.h"
6 6
7 #ifndef GL_GLEXT_PROTOTYPES 7 #ifndef GL_GLEXT_PROTOTYPES
8 #define GL_GLEXT_PROTOTYPES 8 #define GL_GLEXT_PROTOTYPES
9 #endif 9 #endif
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 texture_state->background_color->rgba = 0; 81 texture_state->background_color->rgba = 0;
82 for (int i = 0; i < 4; ++i) 82 for (int i = 0; i < 4; ++i)
83 texture_state->vertex_opacity.push_back(1.f); 83 texture_state->vertex_opacity.push_back(1.f);
84 texture_state->flipped = false; 84 texture_state->flipped = false;
85 85
86 frame->resources.push_back(resource.Pass()); 86 frame->resources.push_back(resource.Pass());
87 quad->texture_quad_state = texture_state.Pass(); 87 quad->texture_quad_state = texture_state.Pass();
88 pass->quads.push_back(quad.Pass()); 88 pass->quads.push_back(quad.Pass());
89 89
90 frame->passes.push_back(pass.Pass()); 90 frame->passes.push_back(pass.Pass());
91 return frame.Pass(); 91 return frame;
92 } 92 }
93 93
94 } // namespace mojo 94 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/gpu/texture_cache.cc ('k') | mojo/message_pump/handle_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698