Flutter Impeller
gradient_generator.h File Reference
#include <memory>
#include <vector>
#include "flutter/impeller/core/texture.h"
#include "impeller/core/shader_types.h"
#include "impeller/geometry/color.h"
#include "impeller/geometry/gradient.h"

Go to the source code of this file.

Classes

struct  impeller::StopData
 

Namespaces

 impeller
 

Functions

std::shared_ptr< Texture > impeller::CreateGradientTexture (const GradientData &gradient_data, const std::shared_ptr< impeller::Context > &context)
 Create a host visible texture that contains the gradient defined by the provided gradient data. More...
 
std::vector< StopData > impeller::CreateGradientColors (const std::vector< Color > &colors, const std::vector< Scalar > &stops)
 Populate a vector with the color and stop data for a gradient. More...
 
int impeller::PopulateUniformGradientColors (const std::vector< Color > &colors, const std::vector< Scalar > &stops, Vector4 frag_info_colors[kMaxUniformGradientStops], Vector4 frag_info_stop_pairs[kMaxUniformGradientStops/2])
 Populate 2 arrays with the colors and stop data for a gradient. More...
 

Variables

static constexpr uint32_t impeller::kMaxUniformGradientStops = 256u