Fixed Windows build after Blink removal (flutter/engine#5230)

This commit is contained in:
Ben Konyi
2018-05-10 17:21:12 -07:00
committed by GitHub
parent 67381c0c35
commit 4ef87176ae
4 changed files with 7 additions and 2 deletions

View File

@@ -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"

View File

@@ -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"

View File

@@ -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);

View File

@@ -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"