Revert "Reland c91b178b07b0d - Delete dead signin code (SigninGlobalError)"
[chromium-blink-merge.git] / gpu / command_buffer / client / client_context_state.h
blob45cd14b40a850a342889153859af15e761152585
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 // This file contains the ContextState class.
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_H_
8 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_H_
10 #include <GLES3/gl3.h>
11 #include "gles2_impl_export.h"
13 namespace gpu {
14 namespace gles2 {
16 struct GLES2_IMPL_EXPORT ClientContextState {
17 ClientContextState();
18 ~ClientContextState();
20 // Returns true if state was cached in which case 'enabled' will be set to the
21 // current state.
22 bool GetEnabled(GLenum cap, bool* enabled) const;
24 // Sets the state of a capability.
25 // Returns true if the capability is one that is cached.
26 // 'changed' will be true if the state was different from 'enabled.
27 bool SetCapabilityState(GLenum cap, bool enabled, bool* changed);
29 #include "gpu/command_buffer/client/client_context_state_autogen.h"
31 EnableFlags enable_flags;
34 } // namespace gles2
35 } // namespace gpu
37 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_H_