Flutter Engine
The Flutter Engine
Namespaces | Macros | Typedefs | Functions
embedder_gl_unittests.cc File Reference
#include "tests/embedder_test_context.h"
#include <atomic>
#include <string>
#include <vector>
#include "vulkan/vulkan.h"
#include "GLES3/gl3.h"
#include "flutter/flow/raster_cache.h"
#include "flutter/fml/file.h"
#include "flutter/fml/make_copyable.h"
#include "flutter/fml/mapping.h"
#include "flutter/fml/message_loop.h"
#include "flutter/fml/message_loop_task_queues.h"
#include "flutter/fml/native_library.h"
#include "flutter/fml/paths.h"
#include "flutter/fml/synchronization/count_down_latch.h"
#include "flutter/fml/synchronization/waitable_event.h"
#include "flutter/fml/task_source.h"
#include "flutter/fml/thread.h"
#include "flutter/lib/ui/painting/image.h"
#include "flutter/runtime/dart_vm.h"
#include "flutter/shell/platform/embedder/embedder_surface_gl_impeller.h"
#include "flutter/shell/platform/embedder/tests/embedder_assertions.h"
#include "flutter/shell/platform/embedder/tests/embedder_config_builder.h"
#include "flutter/shell/platform/embedder/tests/embedder_test.h"
#include "flutter/shell/platform/embedder/tests/embedder_test_context_gl.h"
#include "flutter/shell/platform/embedder/tests/embedder_unittests_util.h"
#include "flutter/testing/assertions_skia.h"
#include "flutter/testing/test_gl_surface.h"
#include "flutter/testing/testing.h"
#include "third_party/skia/include/core/SkSurface.h"
#include "third_party/tonic/converter/dart_converter.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  flutter::testing
 

Macros

#define FML_USED_ON_EMBEDDER
 

Typedefs

using flutter::testing::EmbedderTest = testing::EmbedderTest
 

Functions

 flutter::testing::TEST_F (EmbedderTest, CanGetVulkanEmbedderContext)
 
 flutter::testing::TEST_F (EmbedderTest, CanCreateOpenGLRenderingEngine)
 
 flutter::testing::TEST_F (EmbedderTest, MustPreventEngineLaunchWhenRequiredCompositorArgsAreAbsent)
 
 flutter::testing::TEST_F (EmbedderTest, LaunchFailsWhenMultiplePresentCallbacks)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderToOpenGLFramebuffer)
 
 flutter::testing::TEST_F (EmbedderTest, RasterCacheDisabledWithPlatformViews)
 
 flutter::testing::TEST_F (EmbedderTest, RasterCacheEnabled)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderToOpenGLTexture)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderToSoftwareBuffer)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownScene)
 
 flutter::testing::TEST_F (EmbedderTest, CustomCompositorMustWorkWithCustomTaskRunner)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderWithRootLayerOnly)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderWithPlatformLayerOnBottom)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownSceneWithRootSurfaceTransformation)
 
 flutter::testing::TEST_F (EmbedderTest, CanRenderSceneWithoutCustomCompositor)
 
 flutter::testing::TEST_F (EmbedderTest, CanRenderSceneWithoutCustomCompositorWithTransformation)
 
 flutter::testing::TEST_P (EmbedderTestMultiBackend, CanRenderGradientWithoutCompositor)
 
 flutter::testing::TEST_F (EmbedderTest, CanRenderGradientWithoutCompositorWithXform)
 
 flutter::testing::TEST_P (EmbedderTestMultiBackend, CanRenderGradientWithCompositor)
 
 flutter::testing::TEST_F (EmbedderTest, CanRenderGradientWithCompositorWithXform)
 
 flutter::testing::TEST_P (EmbedderTestMultiBackend, CanRenderGradientWithCompositorOnNonRootLayer)
 
 flutter::testing::TEST_F (EmbedderTest, CanRenderGradientWithCompositorOnNonRootLayerWithXform)
 
 flutter::testing::TEST_F (EmbedderTest, VerifyB141980393)
 
 flutter::testing::TEST_F (EmbedderTest, CanCreateEmbedderWithCustomRenderTaskRunner)
 
 flutter::testing::TEST_P (EmbedderTestMultiBackend, CanCreateEmbedderWithCustomRenderTaskRunnerTheSameAsPlatformTaskRunner)
 
 flutter::testing::TEST_P (EmbedderTestMultiBackend, CompositorMustBeAbleToRenderKnownScenePixelRatioOnSurface)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorMustBeAbleToRenderKnownScenePixelRatioOnSurfaceWithRootSurfaceXformation)
 
 flutter::testing::TEST_F (EmbedderTest, PushingMutlipleFramesSetsUpNewRecordingCanvasWithCustomCompositor)
 
 flutter::testing::TEST_F (EmbedderTest, PushingMutlipleFramesSetsUpNewRecordingCanvasWithoutCustomCompositor)
 
 flutter::testing::TEST_P (EmbedderTestMultiBackend, PlatformViewMutatorsAreValid)
 
 flutter::testing::TEST_F (EmbedderTest, PlatformViewMutatorsAreValidWithPixelRatio)
 
 flutter::testing::TEST_F (EmbedderTest, PlatformViewMutatorsAreValidWithPixelRatioAndRootSurfaceTransformation)
 
 flutter::testing::TEST_F (EmbedderTest, EmptySceneIsAcceptable)
 
 flutter::testing::TEST_F (EmbedderTest, SceneWithNoRootContainerIsAcceptable)
 
 flutter::testing::TEST_F (EmbedderTest, ArcEndCapsAreDrawnCorrectly)
 
 flutter::testing::TEST_F (EmbedderTest, ClipsAreCorrectlyCalculated)
 
 flutter::testing::TEST_F (EmbedderTest, ComplexClipsAreCorrectlyCalculated)
 
 flutter::testing::TEST_F (EmbedderTest, ObjectsCanBePostedViaPorts)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorCanPostZeroLayersForPresentation)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorCanPostOnlyPlatformViews)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorRenderTargetsAreRecycled)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorRenderTargetsAreInStableOrder)
 
 flutter::testing::TEST_F (EmbedderTest, FrameInfoContainsValidWidthAndHeight)
 
 flutter::testing::TEST_F (EmbedderTest, MustNotRunWithBothFBOCallbacksSet)
 
 flutter::testing::TEST_F (EmbedderTest, MustNotRunWithBothPresentCallbacksSet)
 
 flutter::testing::TEST_F (EmbedderTest, MustStillRunWhenPopulateExistingDamageIsNotProvided)
 
 flutter::testing::TEST_F (EmbedderTest, MustRunWhenPopulateExistingDamageIsProvided)
 
 flutter::testing::TEST_F (EmbedderTest, MustRunWithPopulateExistingDamageAndFBOCallback)
 
 flutter::testing::TEST_F (EmbedderTest, MustNotRunWhenPopulateExistingDamageButNoOtherFBOCallback)
 
 flutter::testing::TEST_F (EmbedderTest, PresentInfoContainsValidFBOId)
 
 flutter::testing::TEST_F (EmbedderTest, PresentInfoReceivesFullDamageWhenExistingDamageIsWholeScreen)
 
 flutter::testing::TEST_F (EmbedderTest, PresentInfoReceivesEmptyDamage)
 
 flutter::testing::TEST_F (EmbedderTest, PresentInfoReceivesPartialDamage)
 
 flutter::testing::TEST_F (EmbedderTest, PopulateExistingDamageReceivesValidID)
 
 flutter::testing::TEST_F (EmbedderTest, PopulateExistingDamageReceivesInvalidID)
 
 flutter::testing::TEST_F (EmbedderTest, SetSingleDisplayConfigurationWithDisplayId)
 
 flutter::testing::TEST_F (EmbedderTest, SetSingleDisplayConfigurationWithoutDisplayId)
 
 flutter::testing::TEST_F (EmbedderTest, SetValidMultiDisplayConfiguration)
 
 flutter::testing::TEST_F (EmbedderTest, MultipleDisplaysWithSingleDisplayTrueIsInvalid)
 
 flutter::testing::TEST_F (EmbedderTest, MultipleDisplaysWithSameDisplayIdIsInvalid)
 
 flutter::testing::TEST_F (EmbedderTest, CompositorRenderTargetsNotRecycledWhenAvoidsCacheSet)
 
 flutter::testing::TEST_F (EmbedderTest, SnapshotRenderTargetScalesDownToDriverMax)
 
 flutter::testing::TEST_F (EmbedderTest, ObjectsPostedViaPortsServicedOnSecondaryTaskHeap)
 
 flutter::testing::TEST_F (EmbedderTest, CreateInvalidBackingstoreOpenGLTexture)
 
 flutter::testing::TEST_F (EmbedderTest, CreateInvalidBackingstoreOpenGLFramebuffer)
 
 flutter::testing::TEST_F (EmbedderTest, ExternalTextureGLRefreshedTooOften)
 
 flutter::testing::TEST_F (EmbedderTest, PresentInfoReceivesFullScreenDamageWhenPopulateExistingDamageIsNotProvided)
 
 flutter::testing::TEST_F (EmbedderTest, PresentInfoReceivesJoinedDamageWhenExistingDamageContainsMultipleRects)
 
 flutter::testing::TEST_F (EmbedderTest, CanRenderWithImpellerOpenGL)
 
 flutter::testing::INSTANTIATE_TEST_SUITE_P (EmbedderTestGlVk, EmbedderTestMultiBackend, ::testing::Values(EmbedderTestContextType::kOpenGLContext, EmbedderTestContextType::kVulkanContext))
 

Macro Definition Documentation

◆ FML_USED_ON_EMBEDDER

#define FML_USED_ON_EMBEDDER

Definition at line 6 of file embedder_gl_unittests.cc.