chromium/ui/gl/scoped_restore_texture.h

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_GL_SCOPED_RESTORE_TEXTURE_H_
#define UI_GL_SCOPED_RESTORE_TEXTURE_H_

#include "base/memory/raw_ptr.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"

namespace gl {

// Restores the texture binding that the passed-in target had at this object's
// creation when this object is destroyed. If a non-zero `new_binding` is passed
// in, binds `target` to it at construction time.
class GL_EXPORT ScopedRestoreTexture {};

}  // namespace gl

#endif  // UI_GL_SCOPED_RESTORE_TEXTURE_H_