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

Unified Diff: ui/gl/android/scoped_java_surface.h

Issue 1407443002: Remove old C++03 move emulation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: std::move and reflow 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « storage/browser/blob/scoped_file.cc ('k') | ui/gl/android/scoped_java_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/android/scoped_java_surface.h
diff --git a/ui/gl/android/scoped_java_surface.h b/ui/gl/android/scoped_java_surface.h
index 641df64a506f32ddce83f7a0e819dbf976cfd9f2..c955cc212bc737b60c126b09f178f675fbe804d9 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().
« no previous file with comments | « storage/browser/blob/scoped_file.cc ('k') | ui/gl/android/scoped_java_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698