Roll engine to d2b69fec751d6d11f62019c863b2cba4ce575bfe (#16307)
This commit is contained in:
@@ -1 +1 @@
|
||||
aa9ce7092801e7ed8f3f86df0d1067279d13784d
|
||||
d2b69fec751d6d11f62019c863b2cba4ce575bfe
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]';
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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]';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user