#ifndef UI_GL_GL_STATE_RESTORER_H_
#define UI_GL_GL_STATE_RESTORER_H_
#include "base/basictypes.h"
#include "ui/gl/gl_export.h"
namespace gfx {
class GL_EXPORT GLStateRestorer {
public:
GLStateRestorer();
virtual ~GLStateRestorer();
virtual bool IsInitialized() = 0;
virtual void RestoreState(const GLStateRestorer* prev_state) = 0;
virtual void RestoreAllTextureUnitBindings() = 0;
virtual void RestoreActiveTextureUnitBinding(unsigned int target) = 0;
virtual void RestoreFramebufferBindings() = 0;
DISALLOW_COPY_AND_ASSIGN(GLStateRestorer);
};
}
#endif