|
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 |
|
@@ -132,10 +132,8 @@ using TexturePipeline = |
132 | 132 | using TextureStrictSrcPipeline = |
133 | 133 | RenderPipelineHandle<TextureFillVertexShader, |
134 | 134 | TextureFillStrictSrcFragmentShader>; |
135 | | -using PositionUVPipeline = RenderPipelineHandle<TextureFillVertexShader, |
136 | | - TiledTextureFillFragmentShader>; |
137 | 135 | using TiledTexturePipeline = |
138 | | - RenderPipelineHandle<TextureFillVertexShader, |
| 136 | + RenderPipelineHandle<TextureUvFillVertexShader, |
139 | 137 | TiledTextureFillFragmentShader>; |
140 | 138 | using KernelDecalPipeline = |
141 | 139 | RenderPipelineHandle<KernelVertexShader, KernelDecalFragmentShader>; |
@@ -260,20 +258,13 @@ using VerticesUberShader = |
260 | 258 |
|
261 | 259 | /// Geometry Pipelines |
262 | 260 | using PointsComputeShaderPipeline = ComputePipelineBuilder<PointsComputeShader>; |
263 | | -using UvComputeShaderPipeline = ComputePipelineBuilder<UvComputeShader>; |
264 | 261 |
|
265 | 262 | #ifdef IMPELLER_ENABLE_OPENGLES |
266 | 263 | using TiledTextureExternalPipeline = |
267 | | - RenderPipelineHandle<TextureFillVertexShader, |
| 264 | + RenderPipelineHandle<TextureUvFillVertexShader, |
268 | 265 | TiledTextureFillExternalFragmentShader>; |
269 | 266 | #endif // IMPELLER_ENABLE_OPENGLES |
270 | 267 |
|
271 | | -// A struct used to isolate command buffer storage from the content |
272 | | -// context options to preserve const-ness. |
273 | | -struct PendingCommandBuffers { |
274 | | - std::vector<std::shared_ptr<CommandBuffer>> command_buffers; |
275 | | -}; |
276 | | - |
277 | 268 | /// Pipeline state configuration. |
278 | 269 | /// |
279 | 270 | /// Each unique combination of these options requires a different pipeline state |
@@ -485,11 +476,6 @@ class ContentContext { |
485 | 476 | } |
486 | 477 | #endif // IMPELLER_ENABLE_OPENGLES |
487 | 478 |
|
488 | | - std::shared_ptr<Pipeline<PipelineDescriptor>> GetPositionUVPipeline( |
489 | | - ContentContextOptions opts) const { |
490 | | - return GetPipeline(position_uv_pipelines_, opts); |
491 | | - } |
492 | | - |
493 | 479 | std::shared_ptr<Pipeline<PipelineDescriptor>> GetTiledTexturePipeline( |
494 | 480 | ContentContextOptions opts) const { |
495 | 481 | return GetPipeline(tiled_texture_pipelines_, opts); |
@@ -739,12 +725,6 @@ class ContentContext { |
739 | 725 | return point_field_compute_pipelines_; |
740 | 726 | } |
741 | 727 |
|
742 | | - std::shared_ptr<Pipeline<ComputePipelineDescriptor>> GetUvComputePipeline() |
743 | | - const { |
744 | | - FML_DCHECK(GetDeviceCapabilities().SupportsCompute()); |
745 | | - return uv_compute_pipelines_; |
746 | | - } |
747 | | - |
748 | 728 | std::shared_ptr<Context> GetContext() const; |
749 | 729 |
|
750 | 730 | const Capabilities& GetDeviceCapabilities() const; |
@@ -944,7 +924,6 @@ class ContentContext { |
944 | 924 | mutable Variants<TiledTextureExternalPipeline> |
945 | 925 | tiled_texture_external_pipelines_; |
946 | 926 | #endif // IMPELLER_ENABLE_OPENGLES |
947 | | - mutable Variants<PositionUVPipeline> position_uv_pipelines_; |
948 | 927 | mutable Variants<TiledTexturePipeline> tiled_texture_pipelines_; |
949 | 928 | mutable Variants<KernelDecalPipeline> kernel_decal_pipelines_; |
950 | 929 | mutable Variants<KernelPipeline> kernel_nodecal_pipelines_; |
@@ -1010,8 +989,6 @@ class ContentContext { |
1010 | 989 | mutable Variants<VerticesUberShader> vertices_uber_shader_; |
1011 | 990 | mutable std::shared_ptr<Pipeline<ComputePipelineDescriptor>> |
1012 | 991 | point_field_compute_pipelines_; |
1013 | | - mutable std::shared_ptr<Pipeline<ComputePipelineDescriptor>> |
1014 | | - uv_compute_pipelines_; |
1015 | 992 |
|
1016 | 993 | template <class TypedPipeline> |
1017 | 994 | std::shared_ptr<Pipeline<PipelineDescriptor>> GetPipeline( |
@@ -1071,7 +1048,6 @@ class ContentContext { |
1071 | 1048 | #endif // IMPELLER_ENABLE_3D |
1072 | 1049 | std::shared_ptr<RenderTargetAllocator> render_target_cache_; |
1073 | 1050 | std::shared_ptr<HostBuffer> host_buffer_; |
1074 | | - std::unique_ptr<PendingCommandBuffers> pending_command_buffers_; |
1075 | 1051 | bool wireframe_ = false; |
1076 | 1052 |
|
1077 | 1053 | ContentContext(const ContentContext&) = delete; |
|
0 commit comments