Roll engine to cb3376c5dedb71cec7a88b8a8904acc5dd6c6ba1 (#16841)

This contains the following commit:

flutter/engine@cb3376c Support different encodings in Image.toByteData() (#16635)
This commit is contained in:
Todd Volkert 2018-04-21 16:10:39 -07:00 committed by GitHub
parent f544f4d1c7
commit a742b11a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 16 deletions

View File

@ -1 +1 @@
232060828a1d4a9c3ee16b92f3af5f5a15041e32
cb3376c5dedb71cec7a88b8a8904acc5dd6c6ba1

View File

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

View File

@ -40,7 +40,7 @@ class FakeImage implements Image {
void dispose() {}
@override
Future<ByteData> toByteData() async {
Future<ByteData> toByteData({ImageByteFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}

View File

@ -23,7 +23,7 @@ class TestImage implements ui.Image {
void dispose() { }
@override
Future<ByteData> toByteData() async {
Future<ByteData> toByteData({ui.ImageByteFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}

View File

@ -125,7 +125,7 @@ class TestImage implements ui.Image {
void dispose() { }
@override
Future<ByteData> toByteData() async {
Future<ByteData> toByteData({ui.ImageByteFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
}

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 Image, ImageByteFormat;
import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
@ -19,7 +19,7 @@ class SquareImage implements ui.Image {
int get height => 10;
@override
Future<ByteData> toByteData() async {
Future<ByteData> toByteData({ui.ImageByteFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@ -38,7 +38,7 @@ class WideImage implements ui.Image {
int get height => 10;
@override
Future<ByteData> toByteData() async {
Future<ByteData> toByteData({ui.ImageByteFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}
@ -57,7 +57,7 @@ class TallImage implements ui.Image {
int get height => 20;
@override
Future<ByteData> toByteData() async {
Future<ByteData> toByteData({ui.ImageByteFormat format}) async {
throw new UnsupportedError('Cannot encode test image');
}

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

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

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