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

Unified Diff: android_webview/browser/browser_view_renderer.cc

Issue 1552723002: Convert Pass()→std::move() in //android_webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « android_webview/browser/aw_pref_store.cc ('k') | android_webview/browser/child_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/browser_view_renderer.cc
diff --git a/android_webview/browser/browser_view_renderer.cc b/android_webview/browser/browser_view_renderer.cc
index 0e10e46d1b447c5e982efa2bee301c1e2d52c938..c9a3e8a8da11293d78a7d451998407267e4dfff6 100644
--- a/android_webview/browser/browser_view_renderer.cc
+++ b/android_webview/browser/browser_view_renderer.cc
@@ -4,6 +4,8 @@
#include "android_webview/browser/browser_view_renderer.h"
+#include <utility>
+
#include "android_webview/browser/browser_view_renderer_client.h"
#include "android_webview/browser/child_frame.h"
#include "base/auto_reset.h"
@@ -271,13 +273,13 @@ bool BrowserViewRenderer::CompositeHw() {
}
scoped_ptr<ChildFrame> child_frame = make_scoped_ptr(new ChildFrame(
- frame.Pass(), GetCompositorID(compositor_),
+ std::move(frame), GetCompositorID(compositor_),
viewport_rect_for_tile_priority.IsEmpty(), transform_for_tile_priority,
offscreen_pre_raster_, parent_draw_constraints.is_layer));
// Uncommitted frame can happen with consecutive fallback ticks.
ReturnUnusedResource(shared_renderer_state_.PassUncommittedFrameOnUI());
- shared_renderer_state_.SetCompositorFrameOnUI(child_frame.Pass());
+ shared_renderer_state_.SetCompositorFrameOnUI(std::move(child_frame));
return true;
}
« no previous file with comments | « android_webview/browser/aw_pref_store.cc ('k') | android_webview/browser/child_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698