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

Unified Diff: content/public/test/test_synchronous_compositor_android.cc

Issue 1552733002: Convert Pass()→std::move() in //content (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
Index: content/public/test/test_synchronous_compositor_android.cc
diff --git a/content/public/test/test_synchronous_compositor_android.cc b/content/public/test/test_synchronous_compositor_android.cc
index 287aebc874e6a407764103e69a66060d712d10d5..9eff3ff3d104cfddf6fee2511f84a5c81b75cc27 100644
--- a/content/public/test/test_synchronous_compositor_android.cc
+++ b/content/public/test/test_synchronous_compositor_android.cc
@@ -4,6 +4,8 @@
#include "content/public/test/test_synchronous_compositor_android.h"
+#include <utility>
+
#include "cc/output/compositor_frame.h"
namespace content {
@@ -32,7 +34,7 @@ scoped_ptr<cc::CompositorFrame> TestSynchronousCompositor::DemandDrawHw(
const gfx::Rect& clip,
const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) {
- return hardware_frame_.Pass();
+ return std::move(hardware_frame_);
}
bool TestSynchronousCompositor::DemandDrawSw(SkCanvas* canvas) {
@@ -42,7 +44,7 @@ bool TestSynchronousCompositor::DemandDrawSw(SkCanvas* canvas) {
void TestSynchronousCompositor::SetHardwareFrame(
scoped_ptr<cc::CompositorFrame> frame) {
- hardware_frame_ = frame.Pass();
+ hardware_frame_ = std::move(frame);
}
} // namespace content
« no previous file with comments | « content/common/android/gin_java_bridge_value.cc ('k') | content/renderer/java/gin_java_bridge_value_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698