Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / android_webview / browser / scoped_app_gl_state_restore.h
blobfdad735fa2cd4dc6b16adc70b1cf5dd9d6c94df1
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 explicit 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