|
57 | 57 | #include "impeller/entity/texture_fill.frag.h" |
58 | 58 | #include "impeller/entity/texture_fill.vert.h" |
59 | 59 | #include "impeller/entity/texture_fill_strict_src.frag.h" |
| 60 | +#include "impeller/entity/texture_uv_fill.vert.h" |
60 | 61 | #include "impeller/entity/tiled_texture_fill.frag.h" |
61 | | -#include "impeller/entity/uv.comp.h" |
62 | 62 | #include "impeller/entity/vertices.frag.h" |
63 | 63 | #include "impeller/entity/yuv_to_rgb_filter.frag.h" |
64 | 64 |
|
@@ -129,10 +129,8 @@ using TexturePipeline = |
129 | 129 | using TextureStrictSrcPipeline = |
130 | 130 | RenderPipelineHandle<TextureFillVertexShader, |
131 | 131 | TextureFillStrictSrcFragmentShader>; |
132 | | -using PositionUVPipeline = RenderPipelineHandle<TextureFillVertexShader, |
133 | | - TiledTextureFillFragmentShader>; |
134 | 132 | using TiledTexturePipeline = |
135 | | - RenderPipelineHandle<TextureFillVertexShader, |
| 133 | + RenderPipelineHandle<TextureUvFillVertexShader, |
136 | 134 | TiledTextureFillFragmentShader>; |
137 | 135 | using KernelDecalPipeline = |
138 | 136 | RenderPipelineHandle<KernelVertexShader, KernelDecalFragmentShader>; |
@@ -253,20 +251,13 @@ using FramebufferBlendSoftLightPipeline = |
253 | 251 |
|
254 | 252 | /// Geometry Pipelines |
255 | 253 | using PointsComputeShaderPipeline = ComputePipelineBuilder<PointsComputeShader>; |
256 | | -using UvComputeShaderPipeline = ComputePipelineBuilder<UvComputeShader>; |
257 | 254 |
|
258 | 255 | #ifdef IMPELLER_ENABLE_OPENGLES |
259 | 256 | using TiledTextureExternalPipeline = |
260 | | - RenderPipelineHandle<TextureFillVertexShader, |
| 257 | + RenderPipelineHandle<TextureUvFillVertexShader, |
261 | 258 | TiledTextureFillExternalFragmentShader>; |
262 | 259 | #endif // IMPELLER_ENABLE_OPENGLES |
263 | 260 |
|
264 | | -// A struct used to isolate command buffer storage from the content |
265 | | -// context options to preserve const-ness. |
266 | | -struct PendingCommandBuffers { |
267 | | - std::vector<std::shared_ptr<CommandBuffer>> command_buffers; |
268 | | -}; |
269 | | - |
270 | 261 | /// Pipeline state configuration. |
271 | 262 | /// |
272 | 263 | /// Each unique combination of these options requires a different pipeline state |
@@ -478,11 +469,6 @@ class ContentContext { |
478 | 469 | } |
479 | 470 | #endif // IMPELLER_ENABLE_OPENGLES |
480 | 471 |
|
481 | | - std::shared_ptr<Pipeline<PipelineDescriptor>> GetPositionUVPipeline( |
482 | | - ContentContextOptions opts) const { |
483 | | - return GetPipeline(position_uv_pipelines_, opts); |
484 | | - } |
485 | | - |
486 | 472 | std::shared_ptr<Pipeline<PipelineDescriptor>> GetTiledTexturePipeline( |
487 | 473 | ContentContextOptions opts) const { |
488 | 474 | return GetPipeline(tiled_texture_pipelines_, opts); |
@@ -727,12 +713,6 @@ class ContentContext { |
727 | 713 | return point_field_compute_pipelines_; |
728 | 714 | } |
729 | 715 |
|
730 | | - std::shared_ptr<Pipeline<ComputePipelineDescriptor>> GetUvComputePipeline() |
731 | | - const { |
732 | | - FML_DCHECK(GetDeviceCapabilities().SupportsCompute()); |
733 | | - return uv_compute_pipelines_; |
734 | | - } |
735 | | - |
736 | 716 | std::shared_ptr<Context> GetContext() const; |
737 | 717 |
|
738 | 718 | const Capabilities& GetDeviceCapabilities() const; |
@@ -932,7 +912,6 @@ class ContentContext { |
932 | 912 | mutable Variants<TiledTextureExternalPipeline> |
933 | 913 | tiled_texture_external_pipelines_; |
934 | 914 | #endif // IMPELLER_ENABLE_OPENGLES |
935 | | - mutable Variants<PositionUVPipeline> position_uv_pipelines_; |
936 | 915 | mutable Variants<TiledTexturePipeline> tiled_texture_pipelines_; |
937 | 916 | mutable Variants<KernelDecalPipeline> kernel_decal_pipelines_; |
938 | 917 | mutable Variants<KernelPipeline> kernel_nodecal_pipelines_; |
@@ -997,8 +976,6 @@ class ContentContext { |
997 | 976 | framebuffer_blend_softlight_pipelines_; |
998 | 977 | mutable std::shared_ptr<Pipeline<ComputePipelineDescriptor>> |
999 | 978 | point_field_compute_pipelines_; |
1000 | | - mutable std::shared_ptr<Pipeline<ComputePipelineDescriptor>> |
1001 | | - uv_compute_pipelines_; |
1002 | 979 |
|
1003 | 980 | template <class TypedPipeline> |
1004 | 981 | std::shared_ptr<Pipeline<PipelineDescriptor>> GetPipeline( |
@@ -1058,7 +1035,6 @@ class ContentContext { |
1058 | 1035 | #endif // IMPELLER_ENABLE_3D |
1059 | 1036 | std::shared_ptr<RenderTargetAllocator> render_target_cache_; |
1060 | 1037 | std::shared_ptr<HostBuffer> host_buffer_; |
1061 | | - std::unique_ptr<PendingCommandBuffers> pending_command_buffers_; |
1062 | 1038 | bool wireframe_ = false; |
1063 | 1039 |
|
1064 | 1040 | ContentContext(const ContentContext&) = delete; |
|
0 commit comments