Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
3a912de9
Commit
3a912de9
authored
Oct 01, 2015
by
Collin Jackson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use PrivateDart for ImageDecoder constructors
parent
6d689c6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
asset_bundle.dart
packages/flutter/lib/src/services/asset_bundle.dart
+1
-2
image_cache.dart
packages/flutter/lib/src/services/image_cache.dart
+1
-2
No files found.
packages/flutter/lib/src/services/asset_bundle.dart
View file @
3a912de9
...
...
@@ -70,8 +70,7 @@ class MojoAssetBundle extends AssetBundle {
return
_imageCache
.
putIfAbsent
(
key
,
()
{
Completer
<
sky
.
Image
>
completer
=
new
Completer
<
sky
.
Image
>();
load
(
key
).
then
((
assetData
)
{
new
sky
.
ImageDecoder
(
completer
.
complete
)
..
initWithConsumer
(
assetData
.
handle
.
h
);
new
sky
.
ImageDecoder
.
consume
(
assetData
.
handle
.
h
,
completer
.
complete
);
});
return
new
ImageResource
(
completer
.
future
);
});
...
...
packages/flutter/lib/src/services/image_cache.dart
View file @
3a912de9
...
...
@@ -23,8 +23,7 @@ class _ImageCache {
print
(
"Failed (
${response.statusCode}
) to load image
${url}
"
);
completer
.
complete
(
null
);
}
else
{
new
sky
.
ImageDecoder
(
completer
.
complete
)
..
initWithConsumer
(
response
.
body
.
handle
.
h
);
new
sky
.
ImageDecoder
.
consume
(
response
.
body
.
handle
.
h
,
completer
.
complete
);
}
});
return
new
ImageResource
(
completer
.
future
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment