#include <memory>#include "flutter/testing/testing.h"#include "gmock/gmock.h"#include "gtest/gtest.h"#include "impeller/core/device_buffer.h"#include "impeller/core/formats.h"#include "impeller/renderer/backend/gles/command_buffer_gles.h"#include "impeller/renderer/backend/gles/context_gles.h"#include "impeller/renderer/backend/gles/pipeline_gles.h"#include "impeller/renderer/backend/gles/proc_table_gles.h"#include "impeller/renderer/backend/gles/reactor_gles.h"#include "impeller/renderer/backend/gles/test/mock_gles.h"#include "impeller/renderer/backend/gles/texture_gles.h"#include "impeller/renderer/backend/gles/unique_handle_gles.h"#include "impeller/renderer/context.h"#include "impeller/renderer/render_pass.h"#include "impeller/renderer/render_target.h"Go to the source code of this file.
Namespaces | |
| impeller | |
| impeller::testing | |
Functions | |
| impeller::testing::TEST_P (RenderPassGLESWithDiscardFrameBufferExtTest, DiscardFramebufferExt) | |
| impeller::testing::INSTANTIATE_TEST_SUITE_P (FrameBufferObject, RenderPassGLESWithDiscardFrameBufferExtTest, ::testing::ValuesIn(std::vector< DiscardFrameBufferParams >{ {.frame_buffer_id=0,.expected_attachments={GL_COLOR_EXT, GL_DEPTH_EXT, GL_STENCIL_EXT}}, {.frame_buffer_id=1,.expected_attachments={GL_COLOR_ATTACHMENT0, GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT}}}), [](const ::testing::TestParamInfo< DiscardFrameBufferParams > &info) { return(info.param.frame_buffer_id==0) ? "Default" :"NonDefault";}) | |
| impeller::testing::TEST_P (RenderPassGLESWithDiscardFrameBufferExtTest, InvalidateFramebuffer) | |
| impeller::testing::TEST (RenderPassGLESTest, ResolvingMultisampleTextureCachesResolveFBO) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, ViewportCachedAcrossCommands) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, CommandsWithoutViewportGetRenderPassViewport) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, ViewportWithNonZeroXOffsetReachesGL) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, HardwareInstancedArrayDraw) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, HardwareInstancedElementsDraw) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, EmulatedInstancedArrayDraw) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, EmulatedInstancedElementsDraw) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, NonInstancedDrawIssuesSingleDrawArrays) | |
| impeller::testing::TEST_F (RenderPassGLESCommandTest, ZeroInstanceCountIssuesNoDraw) | |
| std::shared_ptr<CommandBuffer> command_buffer |
Definition at line 77 of file render_pass_gles_unittests.cc.
Referenced by impeller::AddMipmapGeneration(), impeller::AdvancedBlend(), impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::CreateTextureForDecompressedImage(), impeller::CommandBufferVK::EndCommandBuffer(), impeller::Context::EnqueueCommandBuffer(), impeller::ContextVK::EnqueueCommandBuffer(), impeller::SurfaceContextVK::EnqueueCommandBuffer(), impeller::ContextMTL::FinishQueue(), ImGui_ImplImpeller_Init(), impeller::CommandBufferVK::InsertDebugMarker(), impeller::ContentContext::MakeSubpass(), impeller::testing::BlendFilterContentsTest::MakeTexture(), impeller::testing::GaussianBlurFilterContentsTest::MakeTexture(), impeller::testing::MatrixFilterContentsTest::MakeTexture(), impeller::testing::MorphologyFilterContentsTest::MakeTexture(), impeller::GoldenPlaygroundTest::OpenPlaygroundHere(), impeller::PipelineBlend(), impeller::CommandBufferVK::PopDebugGroup(), impeller::SurfaceMTL::Present(), impeller::CommandBufferVK::PushDebugGroup(), impeller::Contents::RenderToSnapshot(), impeller::CommandQueueVK::Submit(), impeller::testing::TEST(), and impeller::testing::TEST_P().
| std::shared_ptr<ContextGLES> context |
Definition at line 74 of file render_pass_gles_unittests.cc.
Referenced by impeller::AHBSwapchainImplVK::AcquireNextDrawable(), impeller::KHRSwapchainImplVK::AcquireNextDrawable(), impeller::AHBTextureSourceVK::AHBTextureSourceVK(), impeller::CommandBufferVK::AllocateDescriptorSets(), impeller::AllocatedTextureSourceVK::AllocatedTextureSourceVK(), impeller::android::SurfaceTransaction::Apply(), impeller::testing::CanBatchSubmitTest(), impeller::testing::CanUseFramebufferFetch(), impeller::testing::CanUseMipgeneration(), impeller::testing::CanUsePrimitiveRestartSubmitTest(), IMPELLER_HPP_NAMESPACE::VulkanSwapchain::Create(), impeller::ContextMTL::Create(), impeller::SwapchainVK::Create(), impeller::KHRSwapchainImplVK::Create(), impeller::interop::ContextMTL::Create(), impeller::AHBSwapchainImplVK::Create(), impeller::ContextVK::Create(), impeller::interop::ContextVK::Create(), impeller::interop::ContextGLES::Create(), impeller::CommandPoolVK::CreateCommandBuffer(), impeller::egl::Display::CreateContext(), impeller::CreateDefaultPipeline(), impeller::testing::CreateDefaultPipeline(), impeller::testing::CreateGlyphAtlas(), impeller::TypographerContextSkia::CreateGlyphAtlas(), impeller::CreateGradientTexture(), impeller::ComputePlaygroundTest::CreateHostVisibleDeviceBuffer(), impeller::RenderTargetAllocator::CreateOffscreen(), impeller::RenderTargetCache::CreateOffscreen(), impeller::RenderTargetAllocator::CreateOffscreenMSAA(), impeller::RenderTargetCache::CreateOffscreenMSAA(), impeller::LazyGlyphAtlas::CreateOrGetGlyphAtlas(), impeller::CreatePipelineFuture(), impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::interop::testing::CreateSharedSurface(), impeller::testing::CreateTestCanvas(), impeller::testing::CreateTestYUVTextures(), impeller::CreateTexture(), impeller::CreateTextureForDecompressedImage(), impeller::Playground::CreateTextureForMapping(), impeller::interop::CreateTypefaceFromFontData(), impeller::CompressedImageSkia::Decode(), impeller::DisplayListToTexture(), impeller::egl::EGLMakeCurrentIfNecessary(), impeller::ExternalSemaphoreVK::ExternalSemaphoreVK(), impeller::testing::FlushTestContentContext::FlushTestContentContext(), IMPELLER_HPP_NAMESPACE::ColorSource::FragmentProgram(), IMPELLER_HPP_NAMESPACE::ImageFilter::FragmentProgram(), impeller::KHRSwapchainImplVK::GetCurrentUnderlyingSurfaceSize(), impeller::CommandPoolRecyclerVK::GetGlobalPoolCount(), impeller::interop::ContextVK::GetInfo(), impeller::interop::testing::PlaygroundTest::GetInteropContext(), impeller::SurfaceMTL::GetMetalDrawableAndValidate(), ImGui_ImplImpeller_Init(), impeller::interop::ImpellerColorSourceCreateFragmentProgramNew(), impeller::interop::ImpellerContextCreateMetalNew(), impeller::interop::ImpellerContextCreateOpenGLESNew(), impeller::interop::ImpellerContextCreateVulkanNew(), impeller::interop::ImpellerContextGetVulkanInfo(), impeller::interop::ImpellerContextRelease(), impeller::interop::ImpellerContextRetain(), impeller::interop::ImpellerImageFilterCreateFragmentProgramNew(), impeller::interop::ImpellerParagraphBuilderNew(), impeller::interop::ImpellerSurfaceCreateWrappedFBONew(), impeller::interop::ImpellerSurfaceCreateWrappedMetalDrawableNew(), impeller::interop::ImpellerTextureCreateWithContentsNew(), impeller::interop::ImpellerTextureCreateWithOpenGLTextureHandleNew(), impeller::interop::ImpellerTypographyContextNew(), impeller::interop::ImpellerTypographyContextRegisterFont(), impeller::interop::ImpellerTypographyContextRelease(), impeller::interop::ImpellerTypographyContextRetain(), impeller::interop::ImpellerVulkanSwapchainCreateNew(), impeller::ComputePipelineBuilder< ComputeShader_ >::InitializePipelineDescriptorDefaults(), impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::InitializePipelineDescriptorDefaults(), impeller::GPUTracerVK::InitializeQueryPool(), impeller::testing::IsBadVersionTest(), main(), impeller::ComputePipelineBuilder< ComputeShader_ >::MakeDefaultPipelineDescriptor(), impeller::interop::ColorSource::MakeFragmentProgram(), impeller::interop::ImageFilter::MakeFragmentProgram(), impeller::SurfaceMTL::MakeFromMetalLayerDrawable(), impeller::SurfaceMTL::MakeFromTexture(), impeller::testing::MetalScreenshotter::MakeScreenshot(), impeller::ContentContext::MakeSubpass(), impeller::interop::testing::PlaygroundTest::OpenAssetAsHPPTexture(), impeller::GoldenPlaygroundTest::OpenPlaygroundHere(), impeller::Playground::OpenPlaygroundHere(), impeller::DlPlayground::OpenPlaygroundHere(), impeller::PlaygroundImplMTL::PlaygroundImplMTL(), impeller::PlaygroundImplVK::PlaygroundImplVK(), impeller::SurfaceMTL::PreparePresent(), impeller::SurfaceMTL::Present(), impeller::RuntimeEffectContents::Render(), impeller::testing::RendererDartTest::RenderDartToPlayground(), impeller::RenderToTarget(), impeller::RenderTarget::SetupDepthStencilAttachments(), impeller::CommandQueueVK::Submit(), impeller::interop::SwapchainVK::SwapchainVK(), impeller::GoldenPlaygroundTest::TearDown(), impeller::android::testing::TEST(), impeller::TEST(), impeller::testing::TEST(), impeller::testing::TEST_P(), impeller::interop::testing::TEST_P(), impeller::interop::Texture::Texture(), IMPELLER_HPP_NAMESPACE::Texture::WithContents(), IMPELLER_HPP_NAMESPACE::Texture::WithOpenGLTexture(), IMPELLER_HPP_NAMESPACE::Surface::WrapFBO(), impeller::SurfaceGLES::WrapFBO(), IMPELLER_HPP_NAMESPACE::Surface::WrapMetalDrawable(), impeller::SurfaceVK::WrapSwapchainImage(), impeller::CommandPoolVK::~CommandPoolVK(), impeller::DescriptorPoolVK::~DescriptorPoolVK(), and impeller::glvk::Trampoline::~Trampoline().
| std::shared_ptr<MockWorker> dummy_worker |
Definition at line 75 of file render_pass_gles_unittests.cc.
Referenced by impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::testing::TEST(), and impeller::testing::TEST_P().
| std::shared_ptr<MockGLES> mock_gl |
Definition at line 72 of file render_pass_gles_unittests.cc.
Referenced by impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::testing::TEST(), and impeller::testing::TEST_P().
| testing::NiceMock<MockGLESImpl>& mock_gl_impl_ref |
Definition at line 73 of file render_pass_gles_unittests.cc.
Referenced by impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::testing::TEST(), impeller::testing::TEST_F(), and impeller::testing::TEST_P().
| std::shared_ptr<PipelineGLES> pipeline |
Definition at line 79 of file render_pass_gles_unittests.cc.
Referenced by impeller::AdvancedBlend(), impeller::ConfigureStencil(), impeller::PipelineVK::Create(), impeller::testing::CreateDefaultPipeline(), impeller::PipelineCacheVK::CreatePipeline(), impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::EncodeCommandsInReactor(), impeller::LinkProgram(), impeller::testing::RendererDartTest::RenderDartToPlayground(), impeller::ComputePassBindingsCacheMTL::SetComputePipelineState(), impeller::RenderPass::SetPipeline(), impeller::PassBindingsCacheMTL::SetRenderPipelineState(), impeller::testing::TEST(), impeller::testing::TEST_F(), and impeller::testing::TEST_P().
| std::shared_ptr<ReactorGLES> reactor |
Definition at line 76 of file render_pass_gles_unittests.cc.
Referenced by impeller::TextureGLES::CreatePlaceholder(), impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), impeller::BlitCopyBufferToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToTextureCommandGLES::Encode(), impeller::BlitCopyTextureToBufferCommandGLES::Encode(), impeller::BlitResizeTextureCommandGLES::Encode(), impeller::EncodeCommandsInReactor(), impeller::interop::ImpellerTextureCreateWithOpenGLTextureHandleNew(), impeller::LinkProgram(), impeller::UniqueHandleGLES::MakeUntracked(), impeller::testing::TEST(), impeller::testing::TEST_F(), impeller::testing::TEST_P(), impeller::TextureGLES::WrapFBO(), and impeller::TextureGLES::WrapTexture().
| std::shared_ptr<RenderPass> render_pass |
Definition at line 78 of file render_pass_gles_unittests.cc.
Referenced by impeller::PipelineVK::Create(), impeller::testing::RenderPassGLESCommandTest::CreateRenderPassGLESContext(), ImGui_ImplImpeller_RenderDrawData(), impeller::GoldenPlaygroundTest::OpenPlaygroundHere(), impeller::testing::TEST(), impeller::testing::TEST_F(), and impeller::testing::TEST_P().