#include "gtest/gtest.h"#include "flutter/shell/platform/linux/fl_opengl_manager.h"#include "flutter/shell/platform/linux/fl_subsurface_egl.h"#include "flutter/shell/platform/linux/fl_wayland_display.h"#include "flutter/shell/platform/linux/testing/mock_epoxy.h"#include "flutter/shell/platform/linux/testing/wayland_test.h"#include <epoxy/egl.h>#include <wayland-client.h>Go to the source code of this file.
Classes | |
| class | FlSubsurfaceEGLTest |
Functions | |
| TEST_F (FlSubsurfaceEGLTest, Create) | |
| TEST_F (FlSubsurfaceEGLTest, CreateFailure) | |
| TEST_F (FlSubsurfaceEGLTest, HoldsSubsurface) | |
| TEST_F (FlSubsurfaceEGLTest, Resize) | |
| TEST_F (FlSubsurfaceEGLTest, Present) | |
| TEST_F (FlSubsurfaceEGLTest, PresentResizes) | |
| TEST_F (FlSubsurfaceEGLTest, PresentWithoutBlit) | |
| TEST_F (FlSubsurfaceEGLTest, PresentMatchingBuffer) | |
| TEST_F (FlSubsurfaceEGLTest, PresentDifferentSizeSwapsStaleBuffer) | |
| TEST_F (FlSubsurfaceEGLTest, PresentDifferentSizeWritesWholeFrame) | |
| TEST_F (FlSubsurfaceEGLTest, PresentDifferentSizeWithoutBlit) | |
| TEST_F (FlSubsurfaceEGLTest, PresentAfterResizeSwapsStaleBuffer) | |
| TEST_F (FlSubsurfaceEGLTest, PresentSecondFrameOfNewSize) | |
| TEST_F (FlSubsurfaceEGLTest, PresentRoundsUpToBufferScale) | |
| TEST_F (FlSubsurfaceEGLTest, PresentRoundedFrameWritesAtTopOfBuffer) | |
| TEST_F (FlSubsurfaceEGLTest, ResizeRoundsUpToBufferScale) | |
| TEST_F (FlSubsurfaceEGLTest, Destroy) | |
Variables | |
| constexpr size_t | kWidth = 100 |
| constexpr size_t | kHeight = 200 |
| constexpr gint | kScale = 2 |
| constexpr size_t | kBufferWidth = kWidth * kScale |
| constexpr size_t | kBufferHeight = kHeight * kScale |
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| Create | |||
| ) |
Definition at line 69 of file fl_subsurface_egl_test.cc.
References g_autoptr(), kHeight, kScale, and kWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| CreateFailure | |||
| ) |
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| Destroy | |||
| ) |
Definition at line 274 of file fl_subsurface_egl_test.cc.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| HoldsSubsurface | |||
| ) |
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| Present | |||
| ) |
Definition at line 115 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kHeight, and kWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentAfterResizeSwapsStaleBuffer | |||
| ) |
Definition at line 210 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), fl_subsurface_egl_resize(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentDifferentSizeSwapsStaleBuffer | |||
| ) |
Definition at line 168 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentDifferentSizeWithoutBlit | |||
| ) |
Definition at line 194 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentDifferentSizeWritesWholeFrame | |||
| ) |
Definition at line 180 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentMatchingBuffer | |||
| ) |
Definition at line 152 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentResizes | |||
| ) |
Definition at line 126 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentRoundedFrameWritesAtTopOfBuffer | |||
| ) |
Definition at line 253 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), and kScale.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentRoundsUpToBufferScale | |||
| ) |
Definition at line 241 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), and kScale.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentSecondFrameOfNewSize | |||
| ) |
Definition at line 225 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kBufferHeight, and kBufferWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| PresentWithoutBlit | |||
| ) |
Definition at line 137 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_present(), g_autoptr(), kHeight, and kWidth.
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| Resize | |||
| ) |
Definition at line 105 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_resize(), and g_autoptr().
| TEST_F | ( | FlSubsurfaceEGLTest | , |
| ResizeRoundsUpToBufferScale | |||
| ) |
Definition at line 264 of file fl_subsurface_egl_test.cc.
References fl_subsurface_egl_resize(), g_autoptr(), and kScale.
Definition at line 27 of file fl_subsurface_egl_test.cc.
Referenced by TEST_F().
Definition at line 26 of file fl_subsurface_egl_test.cc.
Referenced by TEST_F().
|
constexpr |
Definition at line 21 of file fl_subsurface_egl_test.cc.
Referenced by FlSubsurfaceEGLTest::CreateEGL(), and TEST_F().
|
constexpr |
Definition at line 22 of file fl_subsurface_egl_test.cc.
Referenced by FlSubsurfaceEGLTest::CreateEGL(), and TEST_F().
|
constexpr |
Definition at line 20 of file fl_subsurface_egl_test.cc.
Referenced by FlSubsurfaceEGLTest::CreateEGL(), and TEST_F().