#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 138 of file content_context.h.
| using impeller::ContentContext::SubpassCallback = std::function<bool(const ContentContext&, RenderPass&)> |
Definition at line 245 of file content_context.h.
|
explicit |
Setup default clip pipeline.
Definition at line 547 of file content_context.cc.
References impeller::Color::BlackTransparent(), buffer_view, impeller::HostBuffer::Create(), data, 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::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 974 of file content_context.cc.
References GetContext().
| PipelineRef impeller::ContentContext::GetBlendColorBurnPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1327 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendColorDodgePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1332 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendColorPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1322 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendDarkenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1337 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendDifferencePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1342 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendExclusionPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1347 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendHardLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1352 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendHuePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1357 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendLightenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1362 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendLuminosityPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1367 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendMultiplyPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1372 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendOverlayPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1377 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendSaturationPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1382 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendScreenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1387 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBlendSoftLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1392 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetBorderMaskBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1153 of file content_context.cc.
| 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 961 of file content_context.cc.
References key.
Referenced by impeller::RuntimeEffectContents::Render().
| PipelineRef impeller::ContentContext::GetCirclePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1502 of file content_context.cc.
Referenced by impeller::CircleContents::Render().
| PipelineRef impeller::ContentContext::GetClearBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1247 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetClipPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1178 of file content_context.cc.
Referenced by impeller::ColorSourceContents::DrawGeometry(), impeller::ClipContents::Render(), and impeller::RenderClipRestore().
| PipelineRef impeller::ContentContext::GetColorMatrixColorFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1163 of file content_context.cc.
Referenced by impeller::ColorFilterAtlasContents::Render().
| PipelineRef impeller::ContentContext::GetConicalGradientFillPipeline | ( | ContentContextOptions | opts, |
| ConicalKind | kind | ||
| ) | const |
Definition at line 1097 of file content_context.cc.
References impeller::kConical, impeller::kRadial, impeller::kStrip, and impeller::kStripAndRadial.
| PipelineRef impeller::ContentContext::GetConicalGradientSSBOFillPipeline | ( | ContentContextOptions | opts, |
| ConicalKind | kind | ||
| ) | const |
Definition at line 1067 of file content_context.cc.
References FML_DCHECK, GetDeviceCapabilities(), impeller::kConical, impeller::kRadial, impeller::kStrip, and impeller::kStripAndRadial.
| PipelineRef impeller::ContentContext::GetConicalGradientUniformFillPipeline | ( | ContentContextOptions | opts, |
| ConicalKind | kind | ||
| ) | const |
Definition at line 1048 of file content_context.cc.
References impeller::kConical, impeller::kRadial, impeller::kStrip, and impeller::kStripAndRadial.
| std::shared_ptr< Context > impeller::ContentContext::GetContext | ( | ) | const |
Definition at line 953 of file content_context.cc.
Referenced by impeller::AdvancedBlend(), impeller::RuntimeEffectContents::BootstrapShader(), ClearCachedRuntimeEffectPipeline(), ContentContext(), impeller::testing::CreateTestCanvas(), impeller::Canvas::DrawLine(), impeller::InlinePassContext::EndPass(), impeller::EntityPassTarget::Flip(), impeller::InlinePassContext::GetRenderPass(), MakeSubpass(), MakeSubpass(), 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(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetDestinationATopBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1297 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1257 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationInBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1277 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationOutBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1287 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetDestinationOverBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1267 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| const Capabilities & impeller::ContentContext::GetDeviceCapabilities | ( | ) | const |
Definition at line 957 of file content_context.cc.
Referenced by impeller::testing::CreateTestCanvas(), 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(), impeller::Canvas::SaveLayer(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetDownsamplePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1397 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetDrawVerticesUberPipeline | ( | BlendMode | blend_mode, |
| ContentContextOptions | opts | ||
| ) | const |
Definition at line 1492 of file content_context.cc.
References impeller::kHardLight.
Referenced by impeller::AtlasContents::Render(), and impeller::VerticesSimpleBlendContents::Render().
| std::shared_ptr< Texture > impeller::ContentContext::GetEmptyTexture | ( | ) | const |
Definition at line 877 of file content_context.cc.
Referenced by impeller::VerticesSimpleBlendContents::Render().
| PipelineRef impeller::ContentContext::GetFastGradientPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1011 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetFramebufferBlendColorBurnPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1408 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendColorDodgePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1414 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendColorPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1402 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendDarkenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1420 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendDifferencePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1426 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendExclusionPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1432 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendHardLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1438 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendHuePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1444 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendLightenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1450 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendLuminosityPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1456 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendMultiplyPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1462 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendOverlayPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1468 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendSaturationPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1474 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendScreenPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1480 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetFramebufferBlendSoftLightPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1486 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetGaussianBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1148 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetGlyphAtlasPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1182 of file content_context.cc.
Referenced by impeller::TextContents::Render().
|
inline |
Definition at line 266 of file content_context.h.
Referenced by impeller::FirstPassDispatcher::drawText(), impeller::TextContents::Render(), impeller::RenderToTarget(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetLinearGradientFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1016 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetLinearGradientSSBOFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1036 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetLinearGradientUniformFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1021 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetLinearToSrgbFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1168 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetLinePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1507 of file content_context.cc.
Referenced by impeller::LineContents::Render().
| PipelineRef impeller::ContentContext::GetModulateBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1312 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetMorphologyFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1158 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetPlusBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1307 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetPorterDuffPipeline | ( | BlendMode | mode, |
| ContentContextOptions | opts | ||
| ) | const |
Definition at line 1192 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 1092 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetRadialGradientSSBOFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1042 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetRadialGradientUniformFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1026 of file content_context.cc.
|
inline |
Definition at line 270 of file content_context.h.
Referenced by impeller::EntityPassTarget::Flip(), impeller::TextShadowCache::Lookup(), impeller::DlImageImpeller::MakeFromYUVTextures(), MakeSubpass(), impeller::EntityPlayground::OpenPlaygroundHere(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetRRectBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1113 of file content_context.cc.
Referenced by impeller::SolidRRectBlurContents::SetPassInfo().
| PipelineRef impeller::ContentContext::GetRSuperellipseBlurPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1118 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetScreenBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1317 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSolidFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1128 of file content_context.cc.
Referenced by impeller::SolidColorContents::Render(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetSourceATopBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1292 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1252 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceInBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1272 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceOutBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1282 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSourceOverBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1262 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetSrgbToLinearFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1173 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetSweepGradientFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1123 of file content_context.cc.
| PipelineRef impeller::ContentContext::GetSweepGradientSSBOFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1086 of file content_context.cc.
References FML_DCHECK, and GetDeviceCapabilities().
| PipelineRef impeller::ContentContext::GetSweepGradientUniformFillPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1031 of file content_context.cc.
| Tessellator & impeller::ContentContext::GetTessellator | ( | ) | const |
Definition at line 949 of file content_context.cc.
Referenced by impeller::CircleGeometry::GetPositionBuffer(), and impeller::StrokeRectGeometry::GetPositionBuffer().
|
inline |
Definition at line 316 of file content_context.h.
Referenced by impeller::DisplayListToTexture(), impeller::RenderToTarget(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetTexturePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1133 of file content_context.cc.
Referenced by impeller::PipelineBlend(), impeller::AtlasContents::Render(), and impeller::TextureContents::Render().
| PipelineRef impeller::ContentContext::GetTextureStrictSrcPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1138 of file content_context.cc.
Referenced by impeller::TextureContents::Render().
| PipelineRef impeller::ContentContext::GetTiledTexturePipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1143 of file content_context.cc.
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 311 of file content_context.h.
Referenced by impeller::AdvancedBlend(), impeller::Geometry::ComputePositionGeometry(), ContentContext(), impeller::ColorSourceContents::DrawGeometry(), 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::LineContents::Render(), impeller::RuntimeEffectContents::Render(), impeller::SolidColorContents::Render(), impeller::SolidRRectLikeBlurContents::Render(), impeller::TextContents::Render(), impeller::TextureContents::Render(), impeller::TiledTextureContents::Render(), impeller::VerticesSimpleBlendContents::Render(), impeller::ClipContents::Render(), impeller::RenderClipRestore(), impeller::SolidRRectBlurContents::SetPassInfo(), impeller::testing::TEST_P(), impeller::testing::TEST_P(), 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 302 of file content_context.h.
Referenced by impeller::DlVerticesGeometry::GetPositionBuffer(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::EntityPlayground::OpenPlaygroundHere(), impeller::TextContents::Render(), and impeller::testing::TEST_P().
| PipelineRef impeller::ContentContext::GetXorBlendPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1302 of file content_context.cc.
Referenced by GetPorterDuffPipeline().
| PipelineRef impeller::ContentContext::GetYUVToRGBFilterPipeline | ( | ContentContextOptions | opts | ) | const |
Definition at line 1187 of file content_context.cc.
| bool impeller::ContentContext::IsValid | ( | ) | const |
Definition at line 873 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 910 of file content_context.cc.
References impeller::AddMipmapGeneration(), GetContext(), impeller::RenderTarget::GetRenderTargetTexture(), fml::kUnknown, and fml::Status::ok().
| 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 881 of file content_context.cc.
References GetContext(), GetRenderTargetCache(), impeller::RenderTarget::kDefaultColorAttachmentConfig, impeller::RenderTarget::kDefaultColorAttachmentConfigMSAA, impeller::RenderTarget::kDefaultStencilAttachmentConfig, and MakeSubpass().
Referenced by impeller::AdvancedBlend(), MakeSubpass(), impeller::PipelineBlend(), and impeller::Contents::RenderToSnapshot().
| void impeller::ContentContext::ResetTransientsBuffers | ( | ) |
Resets the transients buffers held onto by the content context.
Definition at line 993 of file content_context.cc.
Referenced by impeller::RenderToTarget().
|
inlineprotected |
Definition at line 325 of file content_context.h.
Referenced by impeller::testing::FlushTestContentContext::FlushTestContentContext().
|
inlineprotected |
Definition at line 320 of file content_context.h.
Referenced by impeller::testing::FlushTestContentContext::FlushTestContentContext().