Chromium Code Reviews| Index: content/common/android/surface.h |
| diff --git a/content/common/android/surface.h b/content/common/android/surface.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..78f465879b108951f80325c331a2dd605dd074a5 |
| --- /dev/null |
| +++ b/content/common/android/surface.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
bulach
2013/03/01 11:38:24
see my comments above, I think we can get rid of t
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_ANDROID_SURFACE_H_ |
| +#define CONTENT_COMMON_ANDROID_SURFACE_H_ |
| + |
| +#include <jni.h> |
| + |
| +#include "base/android/scoped_java_ref.h" |
| + |
| +namespace content { |
| + |
| +class Surface { |
| + public: |
| + Surface(const base::android::JavaRef<jobject>& surface_texture); |
| + ~Surface(); |
| + |
| + void Release(); |
| + static void Release(jobject surface); |
| + |
| + const base::android::JavaRef<jobject>& j_surface() const { |
| + return j_surface_; |
| + } |
| + |
| + private: |
| + base::android::ScopedJavaGlobalRef<jobject> j_surface_; |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_ANDROID_SURFACE_H_ |