#include <content_context.h>
Classes | |
| struct | Pipelines |
Public Types | |
| using | SubpassCallback = std::function< bool(const ContentContext &, RenderPass &)> |
Protected Member Functions | |
| void | SetTransientsIndexesBuffer (std::shared_ptr< HostBuffer > host_buffer) |
| void | SetTransientsDataBuffer (std::shared_ptr< HostBuffer > host_buffer) |
Definition at line 123 of file content_context.h.
| using impeller::ContentContext::SubpassCallback = std::function<bool(const ContentContext&, RenderPass&)> |
Definition at line 236 of file content_context.h.
|
explicit |
Setup default clip pipeline.
Definition at line 552 of file content_context.cc.
References impeller::Color::BlackTransparent(), impeller::HostBuffer::Create(), impeller::HostBuffer::Emplace(), impeller::TextureDescriptor::format, GetContext(), impeller::GetPorterDuffSpecConstants(), GetTransientsDataBuffer(), impeller::kA8UNormInt, impeller::kColor, impeller::kColorBurn, impeller::kColorDodge, impeller::kCount1, impeller::kCount4, impeller::kDarken, impeller::kDevicePrivate, impeller::kDifference, impeller::kExclusion, impeller::kHardLight, impeller::kHue, impeller::kLighten, impeller::kLuminosity, impeller::kMultiply, impeller::kNone, impeller::Context::kOpenGLES, impeller::kOverlay, impeller::kR8G8B8A8UNormInt, impeller::kSaturation, impeller::kScreen, impeller::kSoftLight, impeller::kTriangleStrip, impeller::PipelineBuilder< VertexShader_, FragmentShader_ >::MakeDefaultPipelineDescriptor(), pipelines_, impeller::ContentContextOptions::sample_count, impeller::TextureDescriptor::size, impeller::TextureDescriptor::storage_mode, impeller::Color::ToR8G8B8A8(), and VALIDATION_LOG.
|
default |
| void impeller::ContentContext::ClearCachedRuntimeEffectPipeline | ( | const std::string & | unique_entrypoint_name | ) | const |
Used by hot reload/hot restart to clear a cached pipeline from GetCachedRuntimeEffectPipeline.
Definition at line 993 of file content_context.cc.
References GetContext().
| void impeller::ContentContext::ClearCachedTextures | ( | ) | const |
Clear all cached textures.
Definition at line 1606 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendColorBurnPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1353 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendColorDodgePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1358 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendColorPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1348 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendDarkenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1363 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendDifferencePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1368 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendExclusionPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1373 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendHardLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1378 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendHuePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1383 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendLightenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1388 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendLuminosityPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1393 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendMultiplyPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1398 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendOverlayPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1403 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendSaturationPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1408 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendScreenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1413 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBlendSoftLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1418 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetBorderMaskBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1169 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetCachedRuntimeEffectPipeline | ( | const std::string & | unique_entrypoint_name, |
| const ContentContextOptions & | options, | ||
| const std::function< std::shared_ptr< Pipeline< PipelineDescriptor >>()> & | create_callback | ||
| ) | const |
RuntimeEffect pipelines must be obtained via this method to avoid re-creating them every frame.
The unique_entrypoint_name comes from RuntimeEffect::GetEntrypoint. Impellerc generates a unique entrypoint name for runtime effect shaders based on the input file name and shader stage.
The create_callback is synchronously invoked exactly once if a cached pipeline is not found.
Definition at line 980 of file content_context.cc.
Referenced by impeller::RuntimeEffectContents::Render().
| std::shared_ptr< Texture > impeller::ContentContext::GetCachedTexture | ( | const flutter::DlImage * | image | ) | const |
Get a cached texture for the given image.
Definition at line 1577 of file content_context.cc.
Referenced by impeller::DlImageImpeller::GetCachedTexture().
| PipelineRef impeller::ContentContext::GetCirclePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1538 of file content_context.cc.
References pipelines_.
Referenced by impeller::CircleContents::Render().
| PipelineRef impeller::ContentContext::GetClearBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1273 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetClipPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1194 of file content_context.cc.
References pipelines_.
Referenced by impeller::ColorSourceContents::DrawGeometry(), and impeller::ClipContents::Render().
| PipelineRef impeller::ContentContext::GetColorMatrixColorFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1179 of file content_context.cc.
References pipelines_.
Referenced by impeller::ColorFilterAtlasContents::Render().
| PipelineRef impeller::ContentContext::GetComplexRSEPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1213 of file content_context.cc.
References pipelines_.
Referenced by impeller::ComplexRoundedSuperellipseContents::Render().
| PipelineRef impeller::ContentContext::GetConicalGradientFillPipeline | ( | ContentContextOptions | opts, |
| ConicalKind | kind | ||
| ) | const |
Definition at line 1113 of file content_context.cc.
References impeller::kConical, impeller::kRadial, impeller::kStrip, impeller::kStripAndRadial, and pipelines_.
| PipelineRef impeller::ContentContext::GetConicalGradientSSBOFillPipeline | ( | ContentContextOptions | opts, |
| ConicalKind | kind | ||
| ) | const |
Definition at line 1083 of file content_context.cc.
References GetDeviceCapabilities(), impeller::kConical, impeller::kRadial, impeller::kStrip, impeller::kStripAndRadial, and pipelines_.
| PipelineRef impeller::ContentContext::GetConicalGradientUniformFillPipeline | ( | ContentContextOptions | opts, |
| ConicalKind | kind | ||
| ) | const |
Definition at line 1064 of file content_context.cc.
References impeller::kConical, impeller::kRadial, impeller::kStrip, impeller::kStripAndRadial, and pipelines_.
| std::shared_ptr< Context > impeller::ContentContext::GetContext | ( | ) | const |
Definition at line 972 of file content_context.cc.
Referenced by impeller::AdvancedBlend(), impeller::RuntimeEffectContents::BootstrapShader(), ClearCachedRuntimeEffectPipeline(), ContentContext(), impeller::Canvas::DrawCircle(), impeller::Canvas::DrawOval(), impeller::Canvas::DrawRect(), impeller::Canvas::DrawRoundRect(), impeller::Canvas::DrawRoundSuperellipse(), impeller::InlinePassContext::EndPass(), impeller::EntityPassTarget::Flip(), impeller::DlImageImpeller::GetCachedTexture(), impeller::InlinePassContext::GetRenderPass(), MakeSubpass(), impeller::testing::BlendFilterContentsTest::MakeTexture(), impeller::testing::GaussianBlurFilterContentsTest::MakeTexture(), impeller::testing::MatrixFilterContentsTest::MakeTexture(), impeller::testing::MorphologyFilterContentsTest::MakeTexture(), impeller::PipelineBlend(), impeller::AtlasContents::Render(), impeller::ColorFilterAtlasContents::Render(), impeller::LineContents::Render(), impeller::RuntimeEffectContents::Render(), impeller::TextContents::Render(), impeller::TextureContents::Render(), impeller::TiledTextureContents::Render(), impeller::VerticesSimpleBlendContents::Render(), impeller::Contents::RenderToSnapshot(), impeller::Canvas::SaveLayer(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetDestinationATopBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1323 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1283 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationInBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1303 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationOutBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1313 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationOverBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1293 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| const Capabilities & impeller::ContentContext::GetDeviceCapabilities | ( | ) | const |
Definition at line 976 of file content_context.cc.
Referenced by GetConicalGradientSSBOFillPipeline(), GetFramebufferBlendColorBurnPipeline(), GetFramebufferBlendColorDodgePipeline(), GetFramebufferBlendColorPipeline(), GetFramebufferBlendDarkenPipeline(), GetFramebufferBlendDifferencePipeline(), GetFramebufferBlendExclusionPipeline(), GetFramebufferBlendHardLightPipeline(), GetFramebufferBlendHuePipeline(), GetFramebufferBlendLightenPipeline(), GetFramebufferBlendLuminosityPipeline(), GetFramebufferBlendMultiplyPipeline(), GetFramebufferBlendOverlayPipeline(), GetFramebufferBlendSaturationPipeline(), GetFramebufferBlendScreenPipeline(), GetFramebufferBlendSoftLightPipeline(), GetLinearGradientSSBOFillPipeline(), GetRadialGradientSSBOFillPipeline(), GetSweepGradientSSBOFillPipeline(), impeller::ConicalGradientContents::Render(), impeller::LinearGradientContents::Render(), impeller::RadialGradientContents::Render(), impeller::SweepGradientContents::Render(), impeller::TiledTextureContents::Render(), impeller::VerticesSimpleBlendContents::Render(), impeller::RequiresReadbackForBlends(), impeller::Canvas::Restore(), and impeller::Canvas::SaveLayer().
| PipelineRef impeller::ContentContext::GetDownsampleBoundedPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1428 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetDownsamplePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1423 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetDrawShadowVerticesPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1523 of file content_context.cc.
References pipelines_.
Referenced by impeller::ShadowVerticesContents::Render().
| PipelineRef impeller::ContentContext::GetDrawVerticesUberPipeline | ( | BlendMode | blend_mode, |
| ContentContextOptions | opts | ||
| ) | const |
Definition at line 1528 of file content_context.cc.
References impeller::kHardLight, and pipelines_.
Referenced by impeller::AtlasContents::Render(), and impeller::VerticesSimpleBlendContents::Render().
| std::shared_ptr< Texture > impeller::ContentContext::GetEmptyTexture | ( | ) | const |
Definition at line 888 of file content_context.cc.
Referenced by impeller::VerticesSimpleBlendContents::Render().
| PipelineRef impeller::ContentContext::GetFastGradientPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1027 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendColorBurnPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1439 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendColorDodgePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1445 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendColorPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1433 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendDarkenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1451 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendDifferencePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1457 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendExclusionPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1463 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendHardLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1469 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendHuePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1475 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendLightenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1481 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendLuminosityPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1487 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendMultiplyPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1493 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendOverlayPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1499 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendSaturationPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1505 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendScreenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1511 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetFramebufferBlendSoftLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1517 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetGaussianBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1164 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetGlyphAtlasPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1198 of file content_context.cc.
References pipelines_.
Referenced by impeller::TextContents::Render(), and impeller::testing::TEST_P().
|
inline |
Definition at line 257 of file content_context.h.
Referenced by impeller::FirstPassDispatcher::drawText(), impeller::TextContents::Render(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetLinearGradientFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1032 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetLinearGradientSSBOFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1052 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetLinearGradientUniformFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1037 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetLinearToSrgbFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1184 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetLinePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1543 of file content_context.cc.
References pipelines_.
Referenced by impeller::LineContents::Render().
| PipelineRef impeller::ContentContext::GetModulateBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1338 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetMorphologyFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1174 of file content_context.cc.
References pipelines_.
Referenced by impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetPlusBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1333 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetPorterDuffPipeline | ( | BlendMode | mode, |
| ContentContextOptions | opts | ||
| ) | const |
Definition at line 1218 of file content_context.cc.
References impeller::BlendModeToString(), GetClearBlendPipeline(), GetDestinationATopBlendPipeline(), GetDestinationBlendPipeline(), GetDestinationInBlendPipeline(), GetDestinationOutBlendPipeline(), GetDestinationOverBlendPipeline(), GetModulateBlendPipeline(), GetPlusBlendPipeline(), GetScreenBlendPipeline(), GetSourceATopBlendPipeline(), GetSourceBlendPipeline(), GetSourceInBlendPipeline(), GetSourceOutBlendPipeline(), GetSourceOverBlendPipeline(), GetXorBlendPipeline(), impeller::kClear, impeller::kColor, impeller::kColorBurn, impeller::kColorDodge, impeller::kDarken, impeller::kDifference, impeller::kDst, impeller::kDstATop, impeller::kDstIn, impeller::kDstOut, impeller::kDstOver, impeller::kExclusion, impeller::kHardLight, impeller::kHue, impeller::kLighten, impeller::kLuminosity, impeller::kModulate, impeller::kMultiply, impeller::kOverlay, impeller::kPlus, impeller::kSaturation, impeller::kScreen, impeller::kSoftLight, impeller::kSrc, impeller::kSrcATop, impeller::kSrcIn, impeller::kSrcOut, impeller::kSrcOver, impeller::kXor, and VALIDATION_LOG.
Referenced by impeller::AtlasContents::Render(), and impeller::VerticesSimpleBlendContents::Render().
| PipelineRef impeller::ContentContext::GetRadialGradientFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1108 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetRadialGradientSSBOFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1058 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetRadialGradientUniformFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1042 of file content_context.cc.
References pipelines_.
|
inline |
Definition at line 261 of file content_context.h.
Referenced by impeller::EntityPassTarget::Flip(), impeller::TextShadowCache::Lookup(), impeller::DlImageImpeller::MakeFromYUVTextures(), MakeSubpass(), impeller::EntityPlayground::OpenPlaygroundHere(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetRRectBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1129 of file content_context.cc.
References pipelines_.
Referenced by impeller::SolidRRectBlurContents::SetPassInfo().
| PipelineRef impeller::ContentContext::GetRSuperellipseBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1134 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetScreenBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1343 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSolidFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1144 of file content_context.cc.
References pipelines_.
Referenced by impeller::SolidColorContents::Render().
| PipelineRef impeller::ContentContext::GetSourceATopBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1318 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1278 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceInBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1298 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceOutBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1308 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceOverBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1288 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSrgbToLinearFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1189 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetSweepGradientFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1139 of file content_context.cc.
References pipelines_.
| PipelineRef impeller::ContentContext::GetSweepGradientSSBOFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1102 of file content_context.cc.
References GetDeviceCapabilities(), and pipelines_.
| PipelineRef impeller::ContentContext::GetSweepGradientUniformFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1047 of file content_context.cc.
References pipelines_.
| Tessellator & impeller::ContentContext::GetTessellator | ( | ) | const |
Definition at line 968 of file content_context.cc.
Referenced by impeller::CircleGeometry::GetPositionBuffer(), and impeller::StrokeRectGeometry::GetPositionBuffer().
|
inline |
Definition at line 324 of file content_context.h.
Referenced by impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetTexturePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1149 of file content_context.cc.
References pipelines_.
Referenced by impeller::PipelineBlend(), impeller::AtlasContents::Render(), and impeller::TextureContents::Render().
| PipelineRef impeller::ContentContext::GetTextureStrictSrcPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1154 of file content_context.cc.
References pipelines_.
Referenced by impeller::TextureContents::Render().
| PipelineRef impeller::ContentContext::GetTiledTexturePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1159 of file content_context.cc.
References pipelines_.
Referenced by impeller::TiledTextureContents::Render().
|
inline |
Retrieve the current host buffer for transient storage of other non-index data.
This is only safe to use from the raster threads. Other threads should allocate their own device buffers.
Definition at line 319 of file content_context.h.
Referenced by impeller::AdvancedBlend(), impeller::Geometry::ComputePositionGeometry(), ContentContext(), impeller::ColorSourceContents::DrawGeometry(), impeller::ShadowVertices::GetPositionBuffer(), impeller::DlVerticesGeometry::GetPositionBuffer(), impeller::FillRectGeometry::GetPositionBuffer(), impeller::StrokeRectGeometry::GetPositionBuffer(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::EntityPlayground::OpenPlaygroundHere(), impeller::PipelineBlend(), impeller::AtlasContents::Render(), impeller::ColorFilterAtlasContents::Render(), impeller::CircleContents::Render(), impeller::ComplexRoundedSuperellipseContents::Render(), impeller::LineContents::Render(), impeller::RuntimeEffectContents::Render(), impeller::ShadowVerticesContents::Render(), impeller::SolidColorContents::Render(), impeller::SolidRRectLikeBlurContents::Render(), impeller::TextContents::Render(), impeller::TextureContents::Render(), impeller::TiledTextureContents::Render(), impeller::UberSDFContents::Render(), impeller::VerticesSimpleBlendContents::Render(), impeller::ClipContents::Render(), impeller::SolidRRectBlurContents::SetPassInfo(), and impeller::testing::TEST_P().
|
inline |
Retrieve the current host buffer for transient storage of indexes used for indexed draws.
This may or may not return the same value as GetTransientsDataBuffer depending on the backend.
This is only safe to use from the raster threads. Other threads should allocate their own device buffers.
Definition at line 310 of file content_context.h.
Referenced by impeller::ShadowVertices::GetPositionBuffer(), impeller::DlVerticesGeometry::GetPositionBuffer(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::EntityPlayground::OpenPlaygroundHere(), and impeller::TextContents::Render().
| PipelineRef impeller::ContentContext::GetUberSDFPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1208 of file content_context.cc.
References pipelines_.
Referenced by impeller::UberSDFContents::Render().
| PipelineRef impeller::ContentContext::GetXorBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1328 of file content_context.cc.
References pipelines_.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetYUVToRGBFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1203 of file content_context.cc.
References pipelines_.
| bool impeller::ContentContext::IsValid | ( | ) | const |
Definition at line 884 of file content_context.cc.
Referenced by impeller::EntityPlayground::OpenPlaygroundHere().
| fml::StatusOr< RenderTarget > impeller::ContentContext::MakeSubpass | ( | std::string_view | label, |
| const RenderTarget & | subpass_target, | ||
| const std::shared_ptr< CommandBuffer > & | command_buffer, | ||
| const SubpassCallback & | subpass_callback | ||
| ) | const |
Makes a subpass that will render to subpass_target.
Definition at line 929 of file content_context.cc.
References impeller::AddMipmapGeneration(), command_buffer, context, GetContext(), and impeller::RenderTarget::GetRenderTargetTexture().
| fml::StatusOr< RenderTarget > impeller::ContentContext::MakeSubpass | ( | std::string_view | label, |
| ISize | texture_size, | ||
| const std::shared_ptr< CommandBuffer > & | command_buffer, | ||
| const SubpassCallback & | subpass_callback, | ||
| bool | msaa_enabled = true, |
||
| bool | depth_stencil_enabled = false, |
||
| int32_t | mip_count = 1 |
||
| ) | const |
Creates a new texture of size texture_size and calls subpass_callback with a RenderPass for drawing to the texture.
Definition at line 892 of file content_context.cc.
References command_buffer, context, GetContext(), GetRenderTargetCache(), impeller::RenderTarget::kDefaultColorAttachmentConfig, impeller::RenderTarget::kDefaultColorAttachmentConfigMSAA, and impeller::RenderTarget::kDefaultStencilAttachmentConfig.
Referenced by impeller::AdvancedBlend(), impeller::testing::BlendFilterContentsTest::MakeTexture(), impeller::testing::GaussianBlurFilterContentsTest::MakeTexture(), impeller::testing::MatrixFilterContentsTest::MakeTexture(), impeller::testing::MorphologyFilterContentsTest::MakeTexture(), impeller::PipelineBlend(), and impeller::Contents::RenderToSnapshot().
| void impeller::ContentContext::RemoveCachedTexture | ( | const flutter::DlImage * | image | ) | const |
Remove a cached texture for the given image.
Definition at line 1602 of file content_context.cc.
| void impeller::ContentContext::ResetTransientsBuffers | ( | ) |
Resets the transients buffers held onto by the content context.
Definition at line 1012 of file content_context.cc.
| void impeller::ContentContext::SetCachedTexture | ( | const flutter::DlImage * | image, |
| const std::shared_ptr< Texture > & | texture | ||
| ) | const |
Set a cached texture for the given image.
Definition at line 1591 of file content_context.cc.
Referenced by impeller::DlImageImpeller::GetCachedTexture().
| void impeller::ContentContext::SetTextureCachingEnabled | ( | bool | enabled | ) |
Enable or disable texture caching.
Definition at line 1570 of file content_context.cc.
|
inlineprotected |
Definition at line 333 of file content_context.h.
Referenced by impeller::testing::FlushTestContentContext::FlushTestContentContext().
|
inlineprotected |
Definition at line 328 of file content_context.h.
Referenced by impeller::testing::FlushTestContentContext::FlushTestContentContext().