mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
tests/cogl: Migrate premult test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
6c8b12c4de
commit
a53fdfb733
@ -1,6 +1,5 @@
|
||||
cogl_test_conformance_sources = [
|
||||
'test-conform-main.c',
|
||||
'test-premult.c',
|
||||
'test-snippets.c',
|
||||
'test-wrap-modes.c',
|
||||
'test-sub-texture.c',
|
||||
|
@ -59,7 +59,6 @@ main (int argc, char **argv)
|
||||
UNPORTED_TEST (test_object);
|
||||
UNPORTED_TEST (test_fixed);
|
||||
UNPORTED_TEST (test_materials);
|
||||
ADD_TEST (test_premult, 0, 0);
|
||||
UNPORTED_TEST (test_readpixels);
|
||||
ADD_TEST (test_layer_remove, 0, 0);
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#ifndef COGL_TEST_DECLARATIONS_H
|
||||
#define COGL_TEST_DECLARATIONS_H
|
||||
|
||||
void test_premult (void);
|
||||
void test_path (void);
|
||||
void test_path_clip (void);
|
||||
void test_depth_test (void);
|
||||
|
@ -9,6 +9,7 @@ cogl_tests = [
|
||||
'test-pipeline-user-matrix',
|
||||
'test-pipeline-uniforms',
|
||||
'test-pixel-buffer',
|
||||
'test-premult',
|
||||
]
|
||||
|
||||
cogl_test_conformance_includes = [
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "test-declarations.h"
|
||||
#include "test-utils.h"
|
||||
#include "tests/cogl-test-utils.h"
|
||||
|
||||
#define QUAD_WIDTH 32
|
||||
|
||||
@ -110,7 +109,7 @@ check_texture (CoglPipeline *pipeline,
|
||||
test_utils_check_pixel (test_fb, x * QUAD_WIDTH + QUAD_WIDTH / 2, y * QUAD_WIDTH + QUAD_WIDTH / 2, expected_result);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
test_premult (void)
|
||||
{
|
||||
CoglPipeline *pipeline;
|
||||
@ -284,3 +283,6 @@ test_premult (void)
|
||||
g_print ("OK\n");
|
||||
}
|
||||
|
||||
COGL_TEST_SUITE (
|
||||
g_test_add_func ("/premult", test_premult);
|
||||
)
|
Loading…
Reference in New Issue
Block a user