#ifndef UI_GL_TEST_GL_TEST_HELPER_H_
#define UI_GL_TEST_GL_TEST_HELPER_H_
#include <stdint.h>
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface.h"
#if BUILDFLAG(IS_WIN)
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
#endif
namespace gl {
class GLTestHelper {
public:
static GLuint CreateTexture(GLenum target);
static GLuint SetupFramebuffer(int width, int height);
static std::pair<scoped_refptr<GLSurface>, scoped_refptr<GLContext>>
CreateOffscreenGLSurfaceAndContext();
#if BUILDFLAG(IS_WIN)
static SkColor GetColorAtPoint(const SkBitmap& bitmap,
const gfx::Point& location);
static SkBitmap ReadBackWindow(HWND window, const gfx::Size& size);
static SkColor ReadBackWindowPixel(HWND window, const gfx::Point& point);
#endif
};
}
#endif