mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix the assertion in RadialGradient (flutter/engine#3278)
This commit is contained in:
parent
97507cb349
commit
e007ff8794
@ -60,7 +60,7 @@ void CanvasGradient::initRadial(double center_x,
|
||||
const tonic::Int32List& colors,
|
||||
const tonic::Float32List& color_stops,
|
||||
SkShader::TileMode tile_mode) {
|
||||
FTL_DCHECK(colors.num_elements() * 2 == color_stops.num_elements() ||
|
||||
FTL_DCHECK(colors.num_elements() == color_stops.num_elements() ||
|
||||
color_stops.data() == nullptr);
|
||||
|
||||
static_assert(sizeof(SkColor) == sizeof(int32_t),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user