|
7 | 7 | #include <memory>
|
8 | 8 |
|
9 | 9 | #include "flutter/fml/logging.h"
|
10 |
| -#include "impeller/entity/content_renderer.h" |
| 10 | +#include "impeller/entity/content_context.h" |
11 | 11 | #include "impeller/entity/entity.h"
|
12 | 12 | #include "impeller/geometry/path_builder.h"
|
13 | 13 | #include "impeller/geometry/vector.h"
|
|
19 | 19 |
|
20 | 20 | namespace impeller {
|
21 | 21 |
|
22 |
| -static ContentRenderer::Options OptionsFromPass(const RenderPass& pass) { |
23 |
| - ContentRenderer::Options opts; |
| 22 | +static ContentContext::Options OptionsFromPass(const RenderPass& pass) { |
| 23 | + ContentContext::Options opts; |
24 | 24 | opts.sample_count = pass.GetRenderTarget().GetSampleCount();
|
25 | 25 | return opts;
|
26 | 26 | }
|
@@ -60,7 +60,7 @@ const std::vector<Color>& LinearGradientContents::GetColors() const {
|
60 | 60 | return colors_;
|
61 | 61 | }
|
62 | 62 |
|
63 |
| -bool LinearGradientContents::Render(const ContentRenderer& renderer, |
| 63 | +bool LinearGradientContents::Render(const ContentContext& renderer, |
64 | 64 | const Entity& entity,
|
65 | 65 | RenderPass& pass) const {
|
66 | 66 | using VS = GradientFillPipeline::VertexShader;
|
@@ -137,7 +137,7 @@ static VertexBuffer CreateSolidFillVertices(const Path& path,
|
137 | 137 | return vtx_builder.CreateVertexBuffer(buffer);
|
138 | 138 | }
|
139 | 139 |
|
140 |
| -bool SolidColorContents::Render(const ContentRenderer& renderer, |
| 140 | +bool SolidColorContents::Render(const ContentContext& renderer, |
141 | 141 | const Entity& entity,
|
142 | 142 | RenderPass& pass) const {
|
143 | 143 | if (color_.IsTransparent()) {
|
@@ -194,7 +194,7 @@ void TextureContents::SetOpacity(Scalar opacity) {
|
194 | 194 | opacity_ = opacity;
|
195 | 195 | }
|
196 | 196 |
|
197 |
| -bool TextureContents::Render(const ContentRenderer& renderer, |
| 197 | +bool TextureContents::Render(const ContentContext& renderer, |
198 | 198 | const Entity& entity,
|
199 | 199 | RenderPass& pass) const {
|
200 | 200 | if (texture_ == nullptr) {
|
@@ -328,7 +328,7 @@ static VertexBuffer CreateSolidStrokeVertices(const Path& path,
|
328 | 328 | return vtx_builder.CreateVertexBuffer(buffer);
|
329 | 329 | }
|
330 | 330 |
|
331 |
| -bool SolidStrokeContents::Render(const ContentRenderer& renderer, |
| 331 | +bool SolidStrokeContents::Render(const ContentContext& renderer, |
332 | 332 | const Entity& entity,
|
333 | 333 | RenderPass& pass) const {
|
334 | 334 | if (color_.IsTransparent() || stroke_size_ <= 0.0) {
|
@@ -377,7 +377,7 @@ ClipContents::ClipContents() = default;
|
377 | 377 |
|
378 | 378 | ClipContents::~ClipContents() = default;
|
379 | 379 |
|
380 |
| -bool ClipContents::Render(const ContentRenderer& renderer, |
| 380 | +bool ClipContents::Render(const ContentContext& renderer, |
381 | 381 | const Entity& entity,
|
382 | 382 | RenderPass& pass) const {
|
383 | 383 | using VS = ClipPipeline::VertexShader;
|
|
0 commit comments