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

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

Issue 2047633002: Revert of Remove base/move.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months 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 | « styleguide/c++/c++11.html ('k') | no next file » | 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 5bf71d0c6f22d43deb3913d28af7daf2742e86f8..857ff5b1de905420cf6403a89ab3204f5461fe6d 100644
--- a/ui/gl/android/scoped_java_surface.h
+++ b/ui/gl/android/scoped_java_surface.h
@@ -8,7 +8,7 @@
#include <jni.h>
#include "base/android/scoped_java_ref.h"
-#include "base/macros.h"
+#include "base/move.h"
#include "ui/gl/gl_export.h"
namespace gl {
@@ -19,6 +19,8 @@
// 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);
+
public:
ScopedJavaSurface();
@@ -59,8 +61,6 @@
bool is_protected_;
base::android::ScopedJavaGlobalRef<jobject> j_surface_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedJavaSurface);
};
} // namespace gl
« no previous file with comments | « styleguide/c++/c++11.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698