Unverified Commit 06ed3622 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Roll engine to d2b69fec751d6d11f62019c863b2cba4ce575bfe (#16307)

parent c02ad6fd
aa9ce7092801e7ed8f3f86df0d1067279d13784d d2b69fec751d6d11f62019c863b2cba4ce575bfe
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; 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/foundation.dart';
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
...@@ -87,6 +88,11 @@ class TestImage implements ui.Image { ...@@ -87,6 +88,11 @@ class TestImage implements ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
} }
void main() { void main() {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; import 'dart:async';
import 'dart:typed_data';
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
...@@ -37,6 +38,11 @@ class FakeImage implements Image { ...@@ -37,6 +38,11 @@ class FakeImage implements Image {
@override @override
void dispose() {} void dispose() {}
@override
Future<ByteData> toByteData({EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
} }
class MockCodec implements Codec { class MockCodec implements Codec {
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
...@@ -19,6 +21,11 @@ class TestImage implements ui.Image { ...@@ -19,6 +21,11 @@ class TestImage implements ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
} }
class TestCanvas implements Canvas { class TestCanvas implements Canvas {
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async';
import 'dart:typed_data';
import 'dart:ui' as ui; import 'dart:ui' as ui;
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
...@@ -121,4 +123,9 @@ class TestImage implements ui.Image { ...@@ -121,4 +123,9 @@ class TestImage implements ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
} }
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // 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/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -16,6 +18,11 @@ class SquareImage implements ui.Image { ...@@ -16,6 +18,11 @@ class SquareImage implements ui.Image {
@override @override
int get height => 10; int get height => 10;
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override @override
String toString() => '[$width\u00D7$height]'; String toString() => '[$width\u00D7$height]';
...@@ -30,6 +37,11 @@ class WideImage implements ui.Image { ...@@ -30,6 +37,11 @@ class WideImage implements ui.Image {
@override @override
int get height => 10; int get height => 10;
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override @override
String toString() => '[$width\u00D7$height]'; String toString() => '[$width\u00D7$height]';
...@@ -44,6 +56,11 @@ class TallImage implements ui.Image { ...@@ -44,6 +56,11 @@ class TallImage implements ui.Image {
@override @override
int get height => 20; int get height => 20;
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override @override
String toString() => '[$width\u00D7$height]'; String toString() => '[$width\u00D7$height]';
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'dart:async'; import 'dart:async';
import 'dart:typed_data'; 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/foundation.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -24,6 +24,11 @@ class TestImage implements ui.Image { ...@@ -24,6 +24,11 @@ class TestImage implements ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
} }
class TestByteData implements ByteData { class TestByteData implements ByteData {
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; 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/foundation.dart';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
...@@ -34,6 +35,11 @@ class TestImage implements ui.Image { ...@@ -34,6 +35,11 @@ class TestImage implements ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
} }
void main() { void main() {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
import 'dart:async'; import 'dart:async';
import 'dart:typed_data'; 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/foundation.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -483,6 +483,11 @@ class TestImage implements ui.Image { ...@@ -483,6 +483,11 @@ class TestImage implements ui.Image {
@override @override
void dispose() { } void dispose() { }
@override
Future<ByteData> toByteData({ui.EncodingFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@override @override
String toString() => '[$width\u00D7$height]'; String toString() => '[$width\u00D7$height]';
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment