Bug 177769

Summary: Implement quality-of-service tiers in WebCoreDecompressionSession
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing
none
Patch for landing
none
Patch for landing none

Description Jer Noble 2017-10-02 13:17:42 PDT
Implement quality-of-service tiers in WebCoreDecompressionSession
Comment 1 Jer Noble 2017-10-02 13:20:31 PDT
Created attachment 322418 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2017-10-02 13:20:41 PDT
<rdar://problem/34774531>
Comment 3 Radar WebKit Bug Importer 2017-10-02 13:20:45 PDT
<rdar://problem/34774533>
Comment 4 Dean Jackson 2017-10-02 13:29:56 PDT
Comment on attachment 322418 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=322418&action=review

> Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm:269
> +        LOG(Media, "WebCoreDecompressionSession::decodeSample(%p) - decoding took %g%% of duration (%gs vs. %gs)", this, 100. * deltaRatio, delta, duration);

Won't this produce a LOT of log spew? Maybe do it every N frames as an average?
Comment 5 Jer Noble 2017-10-02 13:32:49 PDT
(In reply to Dean Jackson from comment #4)
> Comment on attachment 322418 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=322418&action=review
> 
> > Source/WebCore/platform/graphics/cocoa/WebCoreDecompressionSession.mm:269
> > +        LOG(Media, "WebCoreDecompressionSession::decodeSample(%p) - decoding took %g%% of duration (%gs vs. %gs)", this, 100. * deltaRatio, delta, duration);
> 
> Won't this produce a LOT of log spew? Maybe do it every N frames as an
> average?

Sure we can drop it. The "every N frames as an average" is the logging in updateQosWithDecodeTimeStatistics().
Comment 6 Jer Noble 2017-10-02 13:37:03 PDT
Created attachment 322422 [details]
Patch for landing
Comment 7 Jer Noble 2017-10-02 15:12:02 PDT
Created attachment 322452 [details]
Patch for landing
Comment 8 Jer Noble 2017-10-02 15:33:41 PDT
Created attachment 322460 [details]
Patch for landing
Comment 9 Jer Noble 2017-10-03 09:12:50 PDT
Created attachment 322530 [details]
Patch for landing
Comment 10 WebKit Commit Bot 2017-10-03 12:56:38 PDT
Comment on attachment 322530 [details]
Patch for landing

Clearing flags on attachment: 322530

Committed r222803: <http://trac.webkit.org/changeset/222803>
Comment 11 WebKit Commit Bot 2017-10-03 12:56:40 PDT
All reviewed patches have been landed.  Closing bug.