Roll engine to d2b69fec751d6d11f62019c863b2cba4ce575bfe (#16307)

This commit is contained in:
Todd Volkert
2018-04-06 10:09:16 -07:00
committed by GitHub
parent c02ad6fd41
commit 06ed3622a3
9 changed files with 65 additions and 6 deletions

View File

@@ -1 +1 @@
aa9ce7092801e7ed8f3f86df0d1067279d13784d
d2b69fec751d6d11f62019c863b2cba4ce575bfe

View File

@@ -3,7 +3,8 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:ui' as ui show Image, ColorFilter;
import 'dart:typed_data';
import 'dart:ui' as ui show EncodingFormat, Image, ColorFilter;
import 'package:flutter/foundation.dart';
import 'package:flutter/painting.dart';
@@ -87,6 +88,11 @@ class TestImage implements ui.Image {
@override
void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}
void main() {

View File

@@ -3,6 +3,7 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui';
import 'package:flutter/painting.dart';
@@ -37,6 +38,11 @@ class FakeImage implements Image {
@override
void dispose() {}
@override
Future<ByteData> toByteData({EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}
class MockCodec implements Codec {

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.
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/painting.dart';
@@ -19,6 +21,11 @@ class TestImage implements ui.Image {
@override
void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}
class TestCanvas implements Canvas {

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.
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui;
import 'package:flutter/foundation.dart';
@@ -121,4 +123,9 @@ class TestImage implements ui.Image {
@override
void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}

View File

@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:ui' as ui show Image;
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui show EncodingFormat, Image;
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
@@ -16,6 +18,11 @@ class SquareImage implements ui.Image {
@override
int get height => 10;
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override
String toString() => '[$width\u00D7$height]';
@@ -30,6 +37,11 @@ class WideImage implements ui.Image {
@override
int get height => 10;
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override
String toString() => '[$width\u00D7$height]';
@@ -44,6 +56,11 @@ class TallImage implements ui.Image {
@override
int get height => 20;
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override
String toString() => '[$width\u00D7$height]';

View File

@@ -4,7 +4,7 @@
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui show Image;
import 'dart:ui' as ui show EncodingFormat, Image;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
@@ -24,6 +24,11 @@ class TestImage implements ui.Image {
@override
void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}
class TestByteData implements ByteData {

View File

@@ -3,7 +3,8 @@
// found in the LICENSE file.
import 'dart:async';
import 'dart:ui' as ui show Image;
import 'dart:typed_data';
import 'dart:ui' as ui show EncodingFormat, Image;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
@@ -34,6 +35,11 @@ class TestImage implements ui.Image {
@override
void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}
void main() {

View File

@@ -4,7 +4,7 @@
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui show Image;
import 'dart:ui' as ui show EncodingFormat, Image;
import 'package:flutter/foundation.dart';
import 'package:flutter/rendering.dart';
@@ -483,6 +483,11 @@ class TestImage implements ui.Image {
@override
void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override
String toString() => '[$width\u00D7$height]';
}