Fixed Windows build after Blink removal (flutter/engine#5230)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "flutter/lib/ui/painting/canvas.h"
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
|
||||
#include "flutter/flow/layers/physical_shape_layer.h"
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
|
||||
#include "flutter/lib/ui/painting/gradient.h"
|
||||
|
||||
#include "lib/tonic/converter/dart_converter.h"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "flutter/lib/ui/painting/path.h"
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
|
||||
#include "flutter/lib/ui/painting/matrix.h"
|
||||
@@ -215,7 +216,7 @@ void CanvasPath::addPath(CanvasPath* path, double dx, double dy) {
|
||||
void CanvasPath::addPathWithMatrix(CanvasPath* path, double dx, double dy, tonic::Float64List& matrix4) {
|
||||
if (!path)
|
||||
Dart_ThrowException(ToDart("Path.addPathWithMatrix called with non-genuine Path."));
|
||||
|
||||
|
||||
SkMatrix matrix = ToSkMatrix(matrix4);
|
||||
matrix.setTranslateX(matrix.getTranslateX() + dx);
|
||||
matrix.setTranslateY(matrix.getTranslateY() + dy);
|
||||
@@ -233,7 +234,7 @@ void CanvasPath::extendWithPath(CanvasPath* path, double dx, double dy) {
|
||||
void CanvasPath::extendWithPathAndMatrix(CanvasPath* path, double dx, double dy, tonic::Float64List& matrix4) {
|
||||
if (!path)
|
||||
Dart_ThrowException(ToDart("Path.addPathWithMatrix called with non-genuine Path."));
|
||||
|
||||
|
||||
SkMatrix matrix = ToSkMatrix(matrix4);
|
||||
matrix.setTranslateX(matrix.getTranslateX() + dx);
|
||||
matrix.setTranslateY(matrix.getTranslateY() + dy);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "flutter/lib/ui/painting/path_measure.h"
|
||||
|
||||
#define _USE_MATH_DEFINES
|
||||
#include <math.h>
|
||||
|
||||
#include "flutter/lib/ui/painting/matrix.h"
|
||||
|
||||
Reference in New Issue
Block a user