blob: 65708b26261e7c684a2e0a254529bfa02609c244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_TEST_GL_IMAGE_TEST_SUPPORT_H_
#define UI_GL_TEST_GL_IMAGE_TEST_SUPPORT_H_
#include <stdint.h>
#include "ui/gfx/buffer_types.h"
#include "ui/gl/gl_bindings.h"
namespace gl {
class GLImageTestSupport {
public:
// Initialize GL for image testing.
static void InitializeGL();
// Cleanup GL after being initialized for image testing.
static void CleanupGL();
// Initialize buffer of a specific |format| to |color|.
static void SetBufferDataToColor(int width,
int height,
int stride,
int plane,
gfx::BufferFormat format,
const uint8_t color[4],
uint8_t* data);
};
} // namespace gl
#endif // UI_GL_TEST_GL_IMAGE_TEST_SUPPORT_H_
|