#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_pixel_buffer_texture.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_gl.h"
#include "flutter/shell/platform/linux/testing/fl_test.h"
#include "flutter/shell/platform/linux/testing/mock_texture_registrar.h"
#include "gtest/gtest.h"
#include <epoxy/gl.h>
#include <gmodule.h>
#include <pthread.h>
Go to the source code of this file.
Functions | |
G_DECLARE_FINAL_TYPE (FlTestRegistrarTexture, fl_test_registrar_texture, FL, TEST_REGISTRAR_TEXTURE, FlTextureGL) struct _FlTestRegistrarTexture | |
A simple texture. More... | |
G_DEFINE_TYPE (FlTestRegistrarTexture, fl_test_registrar_texture, fl_texture_gl_get_type()) static gboolean fl_test_registrar_texture_populate(FlTextureGL *texture | |
static void | fl_test_registrar_texture_class_init (FlTestRegistrarTextureClass *klass) |
static void | fl_test_registrar_texture_init (FlTestRegistrarTexture *self) |
static FlTestRegistrarTexture * | fl_test_registrar_texture_new () |
static void * | add_mock_texture_to_registrar (void *pointer) |
TEST (FlTextureRegistrarTest, MockRegistrar) | |
TEST (FlTextureRegistrarTest, RegisterTexture) | |
TEST (FlTextureRegistrarTest, MarkTextureFrameAvailable) | |
TEST (FlTextureRegistrarTest, DISABLED_RegistrarRegisterTextureInMultipleThreads) | |
Variables | |
static constexpr uint32_t | kBufferWidth = 4u |
static constexpr uint32_t | kBufferHeight = 4u |
static constexpr uint32_t | kRealBufferWidth = 2u |
static constexpr uint32_t | kRealBufferHeight = 2u |
static constexpr uint64_t | kThreadCount = 16u |
uint32_t * | target = GL_TEXTURE_2D |
uint32_t uint32_t * | format = GL_R8 |
uint32_t uint32_t uint32_t * | width = kRealBufferWidth |
uint32_t uint32_t uint32_t uint32_t * | height = kRealBufferHeight |
uint32_t uint32_t uint32_t uint32_t GError ** | error |
return | TRUE |
|
static |
Definition at line 69 of file fl_texture_registrar_test.cc.
References fl_test_registrar_texture_new(), fl_texture_get_id(), and fl_texture_registrar_register_texture().
Referenced by TEST().
|
static |
Definition at line 57 of file fl_texture_registrar_test.cc.
|
static |
Definition at line 62 of file fl_texture_registrar_test.cc.
|
static |
Definition at line 64 of file fl_texture_registrar_test.cc.
Referenced by add_mock_texture_to_registrar(), and TEST().
G_DECLARE_FINAL_TYPE | ( | FlTestRegistrarTexture | , |
fl_test_registrar_texture | , | ||
FL | , | ||
TEST_REGISTRAR_TEXTURE | , | ||
FlTextureGL | |||
) |
A simple texture.
Definition at line 24 of file fl_texture_registrar_test.cc.
G_DEFINE_TYPE | ( | FlTestRegistrarTexture | , |
fl_test_registrar_texture | , | ||
fl_texture_gl_get_type() | |||
) |
TEST | ( | FlTextureRegistrarTest | , |
DISABLED_RegistrarRegisterTextureInMultipleThreads | |||
) |
Definition at line 124 of file fl_texture_registrar_test.cc.
References add_mock_texture_to_registrar(), fl_texture_registrar_lookup_texture(), fl_texture_registrar_new(), id, kThreadCount, and make_mock_engine().
TEST | ( | FlTextureRegistrarTest | , |
MarkTextureFrameAvailable | |||
) |
Definition at line 108 of file fl_texture_registrar_test.cc.
References fl_test_registrar_texture_new(), fl_texture_registrar_mark_texture_frame_available(), fl_texture_registrar_new(), fl_texture_registrar_register_texture(), and make_mock_engine().
TEST | ( | FlTextureRegistrarTest | , |
MockRegistrar | |||
) |
Definition at line 80 of file fl_texture_registrar_test.cc.
References fl_test_registrar_texture_new(), fl_texture_registrar_mark_texture_frame_available(), fl_texture_registrar_register_texture(), and fl_texture_registrar_unregister_texture().
TEST | ( | FlTextureRegistrarTest | , |
RegisterTexture | |||
) |
Definition at line 97 of file fl_texture_registrar_test.cc.
References fl_test_registrar_texture_new(), fl_texture_registrar_new(), fl_texture_registrar_register_texture(), fl_texture_registrar_unregister_texture(), and make_mock_engine().
uint32_t uint32_t uint32_t uint32_t GError** error |
Definition at line 44 of file fl_texture_registrar_test.cc.
* format = GL_R8 |
Definition at line 41 of file fl_texture_registrar_test.cc.
Referenced by clipboard_get_data_async(), and fl_framebuffer_new().
* height = kRealBufferHeight |
Definition at line 43 of file fl_texture_registrar_test.cc.
|
staticconstexpr |
Definition at line 19 of file fl_texture_registrar_test.cc.
|
staticconstexpr |
Definition at line 18 of file fl_texture_registrar_test.cc.
|
staticconstexpr |
Definition at line 21 of file fl_texture_registrar_test.cc.
|
staticconstexpr |
Definition at line 20 of file fl_texture_registrar_test.cc.
|
staticconstexpr |
Definition at line 22 of file fl_texture_registrar_test.cc.
Referenced by TEST().
* target = GL_TEXTURE_2D |
Definition at line 40 of file fl_texture_registrar_test.cc.
Referenced by flutter::FlutterPlatformNodeDelegate::AccessibilityPerformAction(), flutter::AccessibilityBridge::CommitUpdates(), fl_test_texture_populate(), and fl_texture_gl_populate().
return TRUE |
Definition at line 54 of file fl_texture_registrar_test.cc.
* width = kRealBufferWidth |
Definition at line 42 of file fl_texture_registrar_test.cc.