Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 34128a822f3670002871d33dbfa4a01d1c6b95a3
      
https://github.com/WebKit/WebKit/commit/34128a822f3670002871d33dbfa4a01d1c6b95a3
  Author: Youenn Fablet <youe...@gmail.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.idl
    M Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameData.h
    M Source/WebCore/bindings/js/SerializedScriptValue.cpp

  Log Message:
  -----------
  Report WebCodecsVideoFrame memoryCost
https://bugs.webkit.org/show_bug.cgi?id=247720
rdar://problem/102182069

Reviewed by Eric Carlson.

Report a rough estimate of WebCodecs Video Frame size.
We compute the size as if it is RGBA as a good enough estimate, though NV12 
would be smaller for instance.

* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.h:
(WebCore::WebCodecsVideoFrame::memoryCost const):
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrame.idl:
* Source/WebCore/Modules/webcodecs/WebCodecsVideoFrameData.h:
(WebCore::WebCodecsVideoFrameData::memoryCost const):
* Source/WebCore/bindings/js/SerializedScriptValue.cpp:
(WebCore::SerializedScriptValue::computeMemoryCost const):

Canonical link: https://commits.webkit.org/256745@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to