WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170864
[CG] To decode an image frame asynchronously, pass the native size of the image to CGImageSourceCreateThumbnailAtIndex() if it's smaller than the sizeForDrawing
https://bugs.webkit.org/show_bug.cgi?id=170864
Summary
[CG] To decode an image frame asynchronously, pass the native size of the ima...
Said Abou-Hallawa
Reported
2017-04-14 15:50:57 PDT
If we don't pass the native size explicitly to CGImageSourceCreateThumbnailAtIndex through the option kCGImageSourceThumbnailMaxPixelSize, CG creates a scaled down thumbnail image for very large images.
Attachments
Patch
(7.10 KB, patch)
2017-04-14 18:05 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(62.66 KB, patch)
2017-04-17 14:14 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(63.77 KB, patch)
2017-04-17 14:24 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews103 for mac-elcapitan
(1014.08 KB, application/zip)
2017-04-17 15:54 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews106 for mac-elcapitan-wk2
(1.06 MB, application/zip)
2017-04-17 15:55 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews121 for ios-simulator-wk2
(985.27 KB, application/zip)
2017-04-17 16:11 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews113 for mac-elcapitan
(1.81 MB, application/zip)
2017-04-17 16:31 PDT
,
Build Bot
no flags
Details
Patch
(90.11 KB, patch)
2017-04-17 18:18 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews102 for mac-elcapitan
(751.75 KB, application/zip)
2017-04-17 19:40 PDT
,
Build Bot
no flags
Details
Archive of layout-test-results from ews112 for mac-elcapitan
(1.69 MB, application/zip)
2017-04-17 19:49 PDT
,
Build Bot
no flags
Details
Patch
(15.94 KB, patch)
2017-05-08 01:54 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews121 for ios-simulator-wk2
(12.63 MB, application/zip)
2017-05-08 03:37 PDT
,
Build Bot
no flags
Details
Patch
(16.14 KB, patch)
2017-05-08 11:02 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Patch
(16.22 KB, patch)
2017-05-08 13:12 PDT
,
Said Abou-Hallawa
no flags
Details
Formatted Diff
Diff
Show Obsolete
(13)
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2017-04-14 15:51:59 PDT
<
rdar://problem/31636234
>
Said Abou-Hallawa
Comment 2
2017-04-14 18:05:36 PDT
Created
attachment 307176
[details]
Patch
Simon Fraser (smfr)
Comment 3
2017-04-15 16:06:31 PDT
Comment on
attachment 307176
[details]
Patch Is this testable?
Said Abou-Hallawa
Comment 4
2017-04-17 14:14:24 PDT
Created
attachment 307294
[details]
Patch
Said Abou-Hallawa
Comment 5
2017-04-17 14:24:15 PDT
Created
attachment 307298
[details]
Patch
Build Bot
Comment 6
2017-04-17 15:54:01 PDT
Comment on
attachment 307298
[details]
Patch
Attachment 307298
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/3553346
New failing tests: fast/images/sprite-sheet-image-draw.html fast/images/async-image-background-image-repeated.html
Build Bot
Comment 7
2017-04-17 15:54:02 PDT
Created
attachment 307311
[details]
Archive of layout-test-results from ews103 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 8
2017-04-17 15:55:52 PDT
Comment on
attachment 307298
[details]
Patch
Attachment 307298
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.webkit.org/results/3553335
New failing tests: fast/images/async-image-background-image-repeated.html
Build Bot
Comment 9
2017-04-17 15:55:54 PDT
Created
attachment 307312
[details]
Archive of layout-test-results from ews106 for mac-elcapitan-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-elcapitan-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 10
2017-04-17 16:11:58 PDT
Comment on
attachment 307298
[details]
Patch
Attachment 307298
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/3553331
New failing tests: fast/images/async-image-background-image-repeated.html
Build Bot
Comment 11
2017-04-17 16:11:59 PDT
Created
attachment 307314
[details]
Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Build Bot
Comment 12
2017-04-17 16:31:12 PDT
Comment on
attachment 307298
[details]
Patch
Attachment 307298
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/3553426
New failing tests: fast/images/sprite-sheet-image-draw.html fast/images/async-image-background-image-repeated.html
Build Bot
Comment 13
2017-04-17 16:31:13 PDT
Created
attachment 307317
[details]
Archive of layout-test-results from ews113 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews113 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Said Abou-Hallawa
Comment 14
2017-04-17 18:18:50 PDT
Created
attachment 307329
[details]
Patch
Build Bot
Comment 15
2017-04-17 19:40:26 PDT
Comment on
attachment 307329
[details]
Patch
Attachment 307329
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.webkit.org/results/3554326
New failing tests: fast/images/sprite-sheet-image-draw.html fast/images/async-image-background-image.html fast/images/async-image-background-image-repeated.html
Build Bot
Comment 16
2017-04-17 19:40:28 PDT
Created
attachment 307335
[details]
Archive of layout-test-results from ews102 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews102 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Build Bot
Comment 17
2017-04-17 19:49:44 PDT
Comment on
attachment 307329
[details]
Patch
Attachment 307329
[details]
did not pass mac-debug-ews (mac): Output:
http://webkit-queues.webkit.org/results/3554334
New failing tests: fast/images/sprite-sheet-image-draw.html fast/images/async-image-background-image.html fast/images/async-image-background-image-repeated.html
Build Bot
Comment 18
2017-04-17 19:49:45 PDT
Created
attachment 307336
[details]
Archive of layout-test-results from ews112 for mac-elcapitan The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-elcapitan Platform: Mac OS X 10.11.6
Said Abou-Hallawa
Comment 19
2017-05-08 01:54:57 PDT
Created
attachment 309350
[details]
Patch
Build Bot
Comment 20
2017-05-08 03:37:48 PDT
Comment on
attachment 309350
[details]
Patch
Attachment 309350
[details]
did not pass ios-sim-ews (ios-simulator-wk2): Output:
http://webkit-queues.webkit.org/results/3697910
New failing tests: fast/images/sprite-sheet-image-draw.html fast/images/async-image-background-image-repeated.html
Build Bot
Comment 21
2017-05-08 03:37:50 PDT
Created
attachment 309351
[details]
Archive of layout-test-results from ews121 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews121 Port: ios-simulator-wk2 Platform: Mac OS X 10.11.6
Said Abou-Hallawa
Comment 22
2017-05-08 11:02:00 PDT
Created
attachment 309381
[details]
Patch
Simon Fraser (smfr)
Comment 23
2017-05-08 12:56:20 PDT
Comment on
attachment 309381
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=309381&action=review
> Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:89 > + unsigned maxPixelSize = DecodingOptions::maxDimension(sizeForDrawing);
maxPixelSize sounds like area, but it's now just one dimension? Could use a better name.
> Source/WebCore/platform/graphics/cg/ImageDecoderCG.cpp:411 > + // CGImageSourceCreateThumbnailAtIndex() returns a CGImage with the image native size > + // regardless of the subsamplingLevel. So we need to get the image native size for > + // SubsamplingLevel::Default and then compare it with sizeForDrawing.
I'm not sure I understand this comment.
Said Abou-Hallawa
Comment 24
2017-05-08 13:12:50 PDT
Created
attachment 309400
[details]
Patch
WebKit Commit Bot
Comment 25
2017-05-08 13:36:35 PDT
Comment on
attachment 309400
[details]
Patch Clearing flags on attachment: 309400 Committed
r216450
: <
http://trac.webkit.org/changeset/216450
>
WebKit Commit Bot
Comment 26
2017-05-08 13:36:36 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug