Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / ui / gl / android_native_window.h
blob78fe416e67d025e452e5309848dcdb438885bb54
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GL_ANDROID_NATIVE_WINDOW_H_
6 #define UI_GL_ANDROID_NATIVE_WINDOW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
11 struct ANativeWindow;
13 namespace gfx {
15 // This class deals with the Android native window ref count.
16 class AndroidNativeWindow {
17 public:
18 explicit AndroidNativeWindow(ANativeWindow* window);
19 ~AndroidNativeWindow();
21 ANativeWindow* GetNativeWindow() const;
23 private:
24 ANativeWindow* window_;
26 DISALLOW_COPY_AND_ASSIGN(AndroidNativeWindow);
29 } // namespace gfx
31 #endif // UI_GL_ANDROID_NATIVE_WINDOW_H_