mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We already know how to talk to the network_service from Dart via fetch.dart. Might as well use that for Image loading as well insetad of having ImageLoader do it. As part of this I've renamed *ImageLoader to *ImageDecoder and moved all the image loading logic into Dart. This required me to teach the idl system about mojo handles so that I could pass the resulting MojoHandle from fetch.dart up through to ImageDecoder. R=abarth@chromium.org, jackson@google.com, hansmuller@google.com Review URL: https://codereview.chromium.org/1173703002.
10 lines
311 B
Plaintext
10 lines
311 B
Plaintext
// Copyright 2013 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
[
|
|
Constructor(MojoDataPipeConsumer consumer, ImageDecoderCallback callback),
|
|
ImplementedAs=CanvasImageDecoder,
|
|
] interface ImageDecoder {
|
|
};
|