[Webkit-unassigned] [Bug 205723] New: [WTF] Allow MediaTime static constants
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 3 06:58:41 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=205723
Bug ID: 205723
Summary: [WTF] Allow MediaTime static constants
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Web Template Framework
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aboya at igalia.com
Despite all its convenience methods, at its core MediaTime is a rather
trivial class with only integral members. Despite this, since it had a
destructor declared, this made the class non-trivially destructible
even if the implementation was empty, and therefore clang did not
allow to use it for static variables unless done in form of a pointer.
By removing the destructor this restriction is lifted and we don't
need heap allocations for static MediaTime objects.
Previous usages of heap allocation for static MediaTime objects have
been rewritten to take advantage of this. Test coverage is provided by
successful compilation without [-Werror,-Wexit-time-destructors]
errors and existing tests.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200103/c28ef497/attachment-0001.htm>
More information about the webkit-unassigned
mailing list