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.
7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h"
14 namespace android_webview
{
17 class ScopedAppGLStateRestoreImpl
;
20 // This class is not thread safe and should only be used on the UI thread.
21 class ScopedAppGLStateRestore
{
25 MODE_RESOURCE_MANAGEMENT
,
28 ScopedAppGLStateRestore(CallMode mode
);
29 ~ScopedAppGLStateRestore();
31 bool stencil_enabled() const;
32 int framebuffer_binding_ext() const;
35 scoped_ptr
<internal::ScopedAppGLStateRestoreImpl
> impl_
;
37 DISALLOW_COPY_AND_ASSIGN(ScopedAppGLStateRestore
);
40 } // namespace android_webview