#include "flutter/shell/platform/linux/public/flutter_linux/fl_pixel_buffer_texture.h"
#include "flutter/shell/platform/linux/fl_pixel_buffer_texture_private.h"
#include "flutter/shell/platform/linux/fl_texture_private.h"
#include "flutter/shell/platform/linux/fl_texture_registrar_private.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_texture_registrar.h"
#include "flutter/shell/platform/linux/testing/fl_test.h"
#include "gtest/gtest.h"
#include <epoxy/gl.h>
Go to the source code of this file.
Functions | |
G_DECLARE_FINAL_TYPE (FlTestPixelBufferTexture, fl_test_pixel_buffer_texture, FL, TEST_PIXEL_BUFFER_TEXTURE, FlPixelBufferTexture) struct _FlTestPixelBufferTexture | |
A simple texture with fixed contents. More... | |
G_DEFINE_TYPE (FlTestPixelBufferTexture, fl_test_pixel_buffer_texture, fl_pixel_buffer_texture_get_type()) static gboolean fl_test_pixel_buffer_texture_copy_pixels(FlPixelBufferTexture *texture | |
static void | fl_test_pixel_buffer_texture_class_init (FlTestPixelBufferTextureClass *klass) |
static void | fl_test_pixel_buffer_texture_init (FlTestPixelBufferTexture *self) |
static FlTestPixelBufferTexture * | fl_test_pixel_buffer_texture_new () |
TEST (FlPixelBufferTextureTest, TextureID) | |
TEST (FlPixelBufferTextureTest, PopulateTexture) | |
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 |
const uint8_t ** | out_buffer = buffer |
const uint8_t uint32_t * | width = kRealBufferWidth |
const uint8_t uint32_t uint32_t * | height = kRealBufferHeight |
const uint8_t uint32_t uint32_t GError ** | error |
static const uint8_t | buffer [] |
return | TRUE |
|
static |
Definition at line 56 of file fl_pixel_buffer_texture_test.cc.
|
static |
Definition at line 62 of file fl_pixel_buffer_texture_test.cc.
|
static |
G_DECLARE_FINAL_TYPE | ( | FlTestPixelBufferTexture | , |
fl_test_pixel_buffer_texture | , | ||
FL | , | ||
TEST_PIXEL_BUFFER_TEXTURE | , | ||
FlPixelBufferTexture | |||
) |
A simple texture with fixed contents.
Definition at line 20 of file fl_pixel_buffer_texture_test.cc.
G_DEFINE_TYPE | ( | FlTestPixelBufferTexture | , |
fl_test_pixel_buffer_texture | , | ||
fl_pixel_buffer_texture_get_type() | |||
) |
TEST | ( | FlPixelBufferTextureTest | , |
PopulateTexture | |||
) |
Definition at line 77 of file fl_pixel_buffer_texture_test.cc.
References error, fl_pixel_buffer_texture_populate(), fl_test_pixel_buffer_texture_new(), kBufferHeight, kBufferWidth, kRealBufferHeight, and kRealBufferWidth.
TEST | ( | FlPixelBufferTextureTest | , |
TextureID | |||
) |
Definition at line 70 of file fl_pixel_buffer_texture_test.cc.
References fl_test_pixel_buffer_texture_new(), fl_texture_get_id(), and fl_texture_set_id().
|
static |
Definition at line 44 of file fl_pixel_buffer_texture_test.cc.
Referenced by flutter::ByteBufferStreamWriter::ByteBufferStreamWriter(), check_size(), flutter::JsonMessageCodec::EncodeMessageInternal(), fl_json_message_codec_encode(), fl_json_message_codec_encode_message(), fl_pixel_buffer_texture_populate(), fl_standard_message_codec_encode_message(), fl_standard_message_codec_read_size(), fl_standard_message_codec_read_value(), fl_standard_message_codec_read_value_of_type(), fl_standard_message_codec_real_write_value(), fl_standard_message_codec_write_size(), fl_standard_message_codec_write_value(), fl_standard_method_codec_encode_error_envelope(), fl_standard_method_codec_encode_method_call(), fl_standard_method_codec_encode_success_envelope(), fl_value_to_string(), float_to_string(), G_DECLARE_DERIVABLE_TYPE(), get_data(), flutter::GetExecutableDirectory(), int_to_string(), read_align(), read_float32_list_value(), read_float64_list_value(), read_float64_value(), read_int32_list_value(), read_int32_value(), read_int64_list_value(), read_int64_value(), read_list_value(), read_map_value(), read_string_value(), read_uint16(), read_uint32(), read_uint8(), read_uint8_list_value(), flutter::ByteBufferStreamReader::ReadBytes(), value_to_string(), write_align(), write_float64(), write_int32(), write_int64(), write_uint16(), and write_uint32().
const uint8_t uint32_t uint32_t GError** error |
Definition at line 40 of file fl_pixel_buffer_texture_test.cc.
Referenced by add_view_cb(), add_view_engine_error_cb(), add_view_error_cb(), cancel_exception_response_cb(), check_size(), flutter::AccessibilityBridge::CommitUpdates(), create_context_cb(), decode_error_message(), decode_error_method_call(), decode_error_response(), decode_message(), decode_method_call(), decode_response_with_error(), decode_response_with_success(), echo_response_cb(), encode_error_envelope(), encode_error_message(), encode_message(), encode_message_error(), encode_method_call(), encode_success_envelope(), error_response_cb(), failure_response_cb(), fake_message_cb(), fake_response_cb(), finish_method(), fl_application_local_command_line(), fl_basic_message_channel_respond(), fl_basic_message_channel_send(), fl_basic_message_channel_send_finish(), fl_binary_codec_encode_message(), fl_binary_messenger_send_on_channel_finish(), fl_binary_messenger_send_response(), fl_engine_add_view_finish(), fl_engine_gl_external_texture_frame_callback(), fl_engine_remove_view_finish(), fl_engine_send_platform_message_finish(), fl_engine_send_platform_message_response(), fl_engine_start(), fl_event_channel_send(), fl_event_channel_send_error(), fl_json_message_codec_decode(), fl_json_message_codec_decode_message(), fl_json_message_codec_encode(), fl_json_message_codec_encode_message(), fl_json_method_codec_decode_method_call(), fl_json_method_codec_decode_response(), fl_json_method_codec_encode_error_envelope(), fl_json_method_codec_encode_method_call(), fl_json_method_codec_encode_success_envelope(), fl_message_codec_decode_message(), fl_message_codec_encode_message(), fl_method_call_respond(), fl_method_call_respond_error(), fl_method_call_respond_not_implemented(), fl_method_call_respond_success(), fl_method_channel_invoke_method(), fl_method_channel_invoke_method_finish(), fl_method_channel_respond(), fl_method_codec_decode_method_call(), fl_method_codec_decode_response(), fl_method_codec_encode_error_envelope(), fl_method_codec_encode_method_call(), fl_method_codec_encode_success_envelope(), fl_method_response_get_result(), fl_pixel_buffer_texture_populate(), fl_renderer_gdk_create_contexts(), fl_settings_new(), fl_settings_portal_start(), fl_standard_message_codec_decode_message(), fl_standard_message_codec_encode_message(), fl_standard_message_codec_read_size(), fl_standard_message_codec_read_value(), fl_standard_message_codec_read_value_of_type(), fl_standard_message_codec_real_write_value(), fl_standard_message_codec_write_value(), fl_standard_method_codec_decode_method_call(), fl_standard_method_codec_decode_response(), fl_standard_method_codec_encode_error_envelope(), fl_standard_method_codec_encode_method_call(), fl_standard_method_codec_encode_success_envelope(), fl_string_codec_encode_message(), fl_test_codec_decode_message(), fl_test_codec_decode_method_call(), fl_test_codec_decode_response(), fl_test_codec_encode_error_envelope(), fl_test_codec_encode_message(), fl_test_codec_encode_method_call(), fl_test_codec_encode_success_envelope(), fl_texture_gl_populate(), G_DECLARE_DERIVABLE_TYPE(), G_DEFINE_TYPE(), get_executable_dir(), get_exit_response(), handle_response(), listen_exception_response_cb(), FlValueStringMatcher::MatchAndExplain(), MethodCallMatcher::MatchAndExplain(), message_cb(), method_call_cb(), method_call_error_cb(), method_call_error_response_cb(), method_call_handler(), method_call_not_implemented_cb(), method_call_not_implemented_response_cb(), method_call_success_cb(), method_call_success_response_cb(), method_response_cb(), not_implemented_response_cb(), null_message_response_cb(), nullptr_args_response_cb(), nullptr_response_cb(), flutter::StreamHandlerFunctions< T >::OnCancelInternal(), flutter::StreamHandlerFunctions< T >::OnListenInternal(), read_align(), read_float32_list_value(), read_float64_list_value(), read_float64_value(), read_int32_list_value(), read_int32_value(), read_int64_list_value(), read_int64_value(), read_list_value(), read_map_value(), read_string_value(), read_uint16(), read_uint32(), read_uint8(), read_uint8_list_value(), realize_cb(), reassign_method_cb(), remove_view_cb(), remove_view_engine_error_cb(), remove_view_error_cb(), request_app_exit_response_cb(), resize_channel_response_cb(), send_events_events_cb(), send_events_listen_cb(), send_lifecycle_state(), send_on_channel_finish(), send_response(), set_warns_on_channel_overflow_response_cb(), flutter::EventChannel< T >::SetStreamHandler(), settings_portal_read(), TEST(), flutter::TEST(), test_method_codec_decode_method_call(), test_method_codec_decode_response(), test_method_codec_encode_error_envelope(), test_method_codec_encode_method_call(), test_method_codec_encode_success_envelope(), unrealize_cb(), and view_added_cb().
* height = kRealBufferHeight |
Definition at line 39 of file fl_pixel_buffer_texture_test.cc.
Referenced by flutter::PixelBufferTexture::CopyPixelBuffer(), fl_accessible_node_get_extents(), fl_accessible_node_set_extents(), fl_accessible_node_set_extents_impl(), fl_engine_add_view(), fl_engine_gl_external_texture_frame_callback(), fl_engine_send_window_metrics_event(), fl_framebuffer_new(), fl_pixel_buffer_texture_populate(), fl_renderer_render(), fl_test_texture_populate(), fl_texture_gl_populate(), G_DECLARE_DERIVABLE_TYPE(), flutter::GpuSurfaceTexture::ObtainDescriptor(), flutter::TextureRegistrarImpl::RegisterTexture(), render_cb(), render_with_blit(), render_with_textures(), TEST(), and flutter::TEST().
|
staticconstexpr |
Definition at line 16 of file fl_pixel_buffer_texture_test.cc.
Referenced by TEST().
|
staticconstexpr |
Definition at line 15 of file fl_pixel_buffer_texture_test.cc.
Referenced by TEST().
|
staticconstexpr |
Definition at line 18 of file fl_pixel_buffer_texture_test.cc.
Referenced by TEST().
|
staticconstexpr |
Definition at line 17 of file fl_pixel_buffer_texture_test.cc.
Referenced by TEST().
* out_buffer = buffer |
Definition at line 37 of file fl_pixel_buffer_texture_test.cc.
return TRUE |
Definition at line 53 of file fl_pixel_buffer_texture_test.cc.
Referenced by channel_closed_cb(), check_pointer_inside(), check_size(), clear_g_call_records(), create_settings(), enter_notify_event_cb(), first_frame_cb(), fl_accessible_node_do_action(), fl_accessible_text_field_add_selection(), fl_accessible_text_field_remove_selection(), fl_accessible_text_field_set_caret_offset(), fl_accessible_text_field_set_selection(), fl_application_create_window(), fl_application_local_command_line(), fl_binary_messenger_platform_message_cb(), fl_engine_send_platform_message_response(), fl_engine_start(), fl_event_channel_send(), fl_event_channel_send_end_of_stream(), fl_event_channel_send_error(), fl_gnome_settings_get_enable_animations(), fl_json_method_codec_decode_method_call(), fl_keyboard_handler_dispose(), fl_keyboard_handler_handle_event(), fl_keyboard_handler_remove_redispatched(), fl_keyboard_pending_event_mark_replied(), fl_method_call_respond(), fl_pixel_buffer_texture_populate(), fl_renderer_collect_backing_store(), fl_renderer_create_backing_store(), fl_renderer_gdk_create_contexts(), fl_renderer_present_layers(), fl_scrolling_manager_handle_rotation_begin(), fl_scrolling_manager_handle_scroll_event(), fl_scrolling_manager_handle_zoom_begin(), fl_standard_message_codec_read_size(), fl_standard_message_codec_read_value_of_type(), fl_standard_message_codec_real_write_value(), fl_standard_method_codec_decode_method_call(), fl_task_runner_release_main_thread(), fl_test_codec_decode_method_call(), fl_test_texture_populate(), fl_text_input_handler_filter_keypress_default(), fl_texture_gl_populate(), fl_view_accessible_handle_update_semantics(), fl_view_init(), fl_view_redraw(), G_DEFINE_TYPE(), g_ptr_array_find_with_equal_func1(), has_child(), im_delete_surrounding_cb(), im_retrieve_surrounding_cb(), initialize(), kill_handler_notify_cb(), leave_notify_event_cb(), motion_notify_event_cb(), read_align(), read_uint16(), read_uint32(), read_uint8(), register_texture(), render_cb(), scroll_event_cb(), send_pointer_button_event(), send_response(), settings_portal_read(), system_intitialization_complete(), TEST(), test_lock_event(), view_added_cb(), view_removed_cb(), and window_delete_event_cb().
* width = kRealBufferWidth |
Definition at line 38 of file fl_pixel_buffer_texture_test.cc.
Referenced by flutter::PixelBufferTexture::CopyPixelBuffer(), fl_accessible_node_get_extents(), fl_accessible_node_set_extents(), fl_accessible_node_set_extents_impl(), fl_engine_add_view(), fl_engine_gl_external_texture_frame_callback(), fl_engine_send_window_metrics_event(), fl_framebuffer_new(), fl_pixel_buffer_texture_populate(), fl_renderer_render(), fl_test_texture_populate(), fl_texture_gl_populate(), G_DECLARE_DERIVABLE_TYPE(), flutter::GpuSurfaceTexture::ObtainDescriptor(), flutter::TextureRegistrarImpl::RegisterTexture(), render_cb(), render_with_blit(), render_with_textures(), TEST(), and flutter::TEST().