diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gl/android/scoped_java_surface.cc | 8 | ||||
-rw-r--r-- | ui/gl/android/scoped_java_surface.h | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ui/gl/android/scoped_java_surface.cc b/ui/gl/android/scoped_java_surface.cc index ae4f81a..37118ae 100644 --- a/ui/gl/android/scoped_java_surface.cc +++ b/ui/gl/android/scoped_java_surface.cc @@ -48,12 +48,12 @@ ScopedJavaSurface::ScopedJavaSurface( j_surface_.Reset(tmp); } -ScopedJavaSurface::ScopedJavaSurface(RValue rvalue) { - MoveFrom(*rvalue.object); +ScopedJavaSurface::ScopedJavaSurface(ScopedJavaSurface&& rvalue) { + MoveFrom(rvalue); } -ScopedJavaSurface& ScopedJavaSurface::operator=(RValue rhs) { - MoveFrom(*rhs.object); +ScopedJavaSurface& ScopedJavaSurface::operator=(ScopedJavaSurface&& rhs) { + MoveFrom(rhs); return *this; } diff --git a/ui/gl/android/scoped_java_surface.h b/ui/gl/android/scoped_java_surface.h index 641df64..c955cc2 100644 --- a/ui/gl/android/scoped_java_surface.h +++ b/ui/gl/android/scoped_java_surface.h @@ -19,7 +19,7 @@ class SurfaceTexture; // When going out of scope, Surface.release() is called on the Java object to // make sure server-side references (esp. wrt graphics memory) are released. class GL_EXPORT ScopedJavaSurface { - MOVE_ONLY_TYPE_FOR_CPP_03(ScopedJavaSurface, RValue); + MOVE_ONLY_TYPE_FOR_CPP_03(ScopedJavaSurface); public: ScopedJavaSurface(); @@ -33,8 +33,8 @@ class GL_EXPORT ScopedJavaSurface { // Move constructor. Take the surface from another ScopedJavaSurface object, // the latter no longer owns the surface afterwards. - ScopedJavaSurface(RValue rvalue); - ScopedJavaSurface& operator=(RValue rhs); + ScopedJavaSurface(ScopedJavaSurface&& rvalue); + ScopedJavaSurface& operator=(ScopedJavaSurface&& rhs); // Creates a ScopedJavaSurface that is owned externally, i.e., // someone else is responsible to call Surface.release(). |