#include <thread>#include "flutter/shell/platform/linux/testing/linux_test.h"#include "gtest/gtest.h"#include "flutter/common/constants.h"#include "flutter/fml/logging.h"#include "flutter/fml/synchronization/waitable_event.h"#include "flutter/shell/platform/linux/fl_compositor_opengl.h"#include "flutter/shell/platform/linux/fl_engine_private.h"#include "flutter/shell/platform/linux/fl_framebuffer.h"#include "flutter/shell/platform/linux/fl_opengl_manager.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_dart_project.h"#include "flutter/shell/platform/linux/testing/mock_epoxy.h"#include "flutter/shell/platform/linux/testing/mock_gtk.h"#include "flutter/shell/platform/linux/testing/mock_renderable.h"#include <epoxy/egl.h>Go to the source code of this file.
Classes | |
| class | FlCompositorOpenGLTest |
Functions | |
| TEST_F (FlCompositorOpenGLTest, Render) | |
| TEST_F (FlCompositorOpenGLTest, Resize) | |
| TEST_F (FlCompositorOpenGLTest, RestoresGLState) | |
| TEST_F (FlCompositorOpenGLTest, BlitFramebuffer) | |
| TEST_F (FlCompositorOpenGLTest, BlitFramebufferExtension) | |
| TEST_F (FlCompositorOpenGLTest, NoBlitFramebuffer) | |
| TEST_F (FlCompositorOpenGLTest, BlitFramebufferNvidia) | |
| TEST_F (FlCompositorOpenGLTest, RenderResizeCrash) | |
| TEST_F | ( | FlCompositorOpenGLTest | , |
| BlitFramebuffer | |||
| ) |
Definition at line 183 of file fl_compositor_opengl_test.cc.
References epoxy_gl_version(), epoxy_is_desktop_gl(), fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and width.
| TEST_F | ( | FlCompositorOpenGLTest | , |
| BlitFramebufferExtension | |||
| ) |
Definition at line 222 of file fl_compositor_opengl_test.cc.
References epoxy_gl_version(), epoxy_has_gl_extension(), epoxy_is_desktop_gl(), fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and width.
| TEST_F | ( | FlCompositorOpenGLTest | , |
| BlitFramebufferNvidia | |||
| ) |
Definition at line 303 of file fl_compositor_opengl_test.cc.
References epoxy_gl_version(), epoxy_is_desktop_gl(), fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and width.
| TEST_F | ( | FlCompositorOpenGLTest | , |
| NoBlitFramebuffer | |||
| ) |
Definition at line 266 of file fl_compositor_opengl_test.cc.
References epoxy_gl_version(), epoxy_is_desktop_gl(), fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and width.
| TEST_F | ( | FlCompositorOpenGLTest | , |
| Render | |||
| ) |
Definition at line 47 of file fl_compositor_opengl_test.cc.
References fl_compositor_get_frame_size(), fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and width.
| TEST_F | ( | FlCompositorOpenGLTest | , |
| RenderResizeCrash | |||
| ) |
Definition at line 341 of file fl_compositor_opengl_test.cc.
References fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), gdk_window_get_height(), gdk_window_get_width(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, FlutterBackingStore::type, FlutterLayer::type, and width.
| TEST_F | ( | FlCompositorOpenGLTest | , |
| Resize | |||
| ) |
Definition at line 83 of file fl_compositor_opengl_test.cc.
References fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), g_autoptr(), kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, fml::AutoResetWaitableEvent::Signal(), surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and fml::AutoResetWaitableEvent::Wait().
| TEST_F | ( | FlCompositorOpenGLTest | , |
| RestoresGLState | |||
| ) |
Definition at line 134 of file fl_compositor_opengl_test.cc.
References epoxy_gl_version(), epoxy_is_desktop_gl(), fl_compositor_present_layers(), fl_compositor_render(), fl_framebuffer_new(), framebuffer, g_autoptr(), glBindTexture(), height, kFlutterBackingStoreTypeOpenGL, kFlutterLayerContentTypeBackingStore, layers, surface, TRUE, FlutterBackingStore::type, FlutterLayer::type, and width.