ChannelMojo: Let MessagePipeReader wait "peer closed" signal as well.
[chromium-blink-merge.git] / android_webview / browser / scoped_app_gl_state_restore.h
blobb6d59c9f86da2657c4c1a6327d75969a72c7e8f0
1 // Copyright 2013 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 #include <vector>
7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h"
10 namespace gfx {
11 class GLContext;
14 namespace android_webview {
16 namespace internal {
17 class ScopedAppGLStateRestoreImpl;
20 // This class is not thread safe and should only be used on the UI thread.
21 class ScopedAppGLStateRestore {
22 public:
23 enum CallMode {
24 MODE_DRAW,
25 MODE_RESOURCE_MANAGEMENT,
28 ScopedAppGLStateRestore(CallMode mode);
29 ~ScopedAppGLStateRestore();
31 bool stencil_enabled() const;
32 int framebuffer_binding_ext() const;
34 private:
35 scoped_ptr<internal::ScopedAppGLStateRestoreImpl> impl_;
37 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore);
40 } // namespace android_webview