Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt 00e98538aa Bug 1523969 part 6 - Move method definition inline comments to new line in 'dom/'. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21106

--HG--
extra : rebase_source : ea3f51c2c11247114deccbc86e90fb02b8a97257
2019-02-25 16:05:29 -06:00
Sylvestre Ledru 804b8b8883 Bug 1204606 - Reformat of dom/media r=jya
# skip-blame

Differential Revision: https://phabricator.services.mozilla.com/D12251

--HG--
extra : moz-landing-system : lando
2018-11-19 13:25:37 +00:00
Nicholas Nethercote 51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00
JW Wang d7f80c5aa7 Bug 1419666 - MemoryBlockCacheTelemetry::NotifyCombinedSizeGrown() should assert the main thread only for the first call. r=bechen,gerald
For the 2nd call might happen off the main thread.

MozReview-Commit-ID: 701p2GGuiEo

--HG--
extra : rebase_source : 049d91e3ecc86d3776ad6809e5e22678bd713a27
2017-11-22 15:06:53 +08:00
JW Wang 799dbc5e79 Bug 1419668 - set mMaxBlocks according to MediaPrefs::MediaMemoryCacheMaxSize(). r=bechen,gerald
Since MemoryBlockCache is used only when the content length is smaller than
MediaPrefs::MediaMemoryCacheMaxSize() * 1024, we should set mMaxBlocks according
to the pref value to prevent blocks from being evicted unexpectedly.

MozReview-Commit-ID: BaI0A0VUbkv

--HG--
extra : rebase_source : 252d469c101cafe3fed51a759c3fac63db5f161a
extra : source : 8aa941397a3d2a354689c1e9d0a5a18bb659366a
2017-11-22 16:00:36 +08:00
JW Wang 20c0330a15 Bug 1400166. P1 - move re-initialization code to Flush() for it is confusing to call Init() twice. r=gerald
MozReview-Commit-ID: 6KolHyGkqXo

--HG--
extra : rebase_source : 98ee1e8a4bebde33149e2dd6d8d0469be7ca11e9
2017-09-18 10:52:17 +08:00
Gerald Squelart 794729a973 Bug 1379091 - Don't prevent MemoryBlockCache overuse - r=cpearce
MozReview-Commit-ID: GvjeSFcnUui

--HG--
extra : rebase_source : 5763040e0e3367ec94fb69d8e0772b3f10ea627b
2017-07-10 10:35:25 +12:00
Gerald Squelart fd79ed9c4e Bug 1379091 - Let block cache tell MediaCache its block use limit - r=cpearce
MozReview-Commit-ID: 5ZCD3NoeYEP

--HG--
extra : rebase_source : 0fe76cfa6b15053dc5cf2b392c5d649e6888e6c6
2017-07-10 10:23:02 +12:00
Chun-Min Chang c5c6d606ca Bug 1378299 - Fix the missing headers; r=cpearce
MozReview-Commit-ID: 1IN2HKWLLM7

--HG--
extra : rebase_source : 4e60644bb283e931f6fcb1f9c89ba6efe202575d
2017-07-05 15:59:03 +08:00
Gerald Squelart 1c7ccdf867 Bug 1377575 - MEDIACACHE_MEMORY_WATERMARK records the MemoryBlockCache memory use watermark - r=cpearce,francois
MozReview-Commit-ID: 1KLofciLxo1

--HG--
extra : rebase_source : 90bba01741635f6c1bb900ac01c0eca339de1a07
2017-06-30 15:09:38 -07:00
Gerald Squelart be79b8f64f Bug 1377575 - Rename MemoryBlockCache's mCombinedSizes to gCombinedSizes - r=cpearce
As it is a static (hence Global) member.

MozReview-Commit-ID: 8NUQRoixr4N

--HG--
extra : rebase_source : 4373db35d448e483f6c1b169f6db68ef456b52b8
2017-06-30 10:43:41 -07:00
Gerald Squelart 878dd6dcf9 Bug 1377575 - No need to explicitly print 'this' from MemoryBlockCache logging - r=cpearce
Because it is already printed by LOG() itself.

MozReview-Commit-ID: 6dBESWQtNkQ

--HG--
extra : rebase_source : 37d1b5360825543a9e28443167219a50adfdebef
2017-06-30 15:17:39 -07:00
Jean-Yves Avenard 783434855f Bug 1374596: P6. More missing headers fixes. r=padenot
MozReview-Commit-ID: 5VYScGXOJsE

--HG--
extra : rebase_source : 6d7433b9277fb582d4873d6bb88691f5e6eab4ed
2017-06-20 17:35:26 +02:00
Gerald Squelart 3af100b5e5 Bug 1371882 - MemoryBlockCache claims extra buffer capacity if any - r=cpearce
MozReview-Commit-ID: GDLs8FcuD07

--HG--
extra : rebase_source : f0bc302b53880ad9ee2f73f1305e7552af300321
2017-06-15 18:38:52 +12:00
Gerald Squelart 2f8acfe718 Bug 1371882 - MemoryBlockCache is responsible for tracking the combined size of all its buffers - r=cpearce
MemoryBlockCache won't allow initializing, or growing an existing buffer,
above the limit (min of 'media.memory_caches_combined_limit_kb' or
sysmem*'media.memory_caches_combined_limit_pc_sysmem'/100).

MozReview-Commit-ID: 6MkwFp2eeth

--HG--
extra : rebase_source : 17345f6fe9f00fddfbef87090665afccaabb2cf5
2017-06-15 17:10:54 +12:00
Gerald Squelart 6400af0f0e Bug 1371882 - MediaBlockCacheBase::Init may be called again to re-initialize cache - r=cpearce
This will be useful to let the MediaCache flush its block cache without having
to restart from scratch (and risk failing).

MozReview-Commit-ID: At3mxH9jb9m

--HG--
extra : rebase_source : b5ac513c6d6d100c8eb41220991388470c0b1a5e
2017-06-15 15:55:39 +12:00
Gerald Squelart 16c8e8bc32 Bug 1371882 - Remove MediaBlockCacheBase::Close() - r=cpearce
The only external use of Close was always followed by an implicit destruction
(by resetting the RefPtr), so we don't need to expose it, and it can be done
from the destructor.

FileBlockCache keeps its Close() function for internal use.
Also, FileBlockCache::mIsOpen is redundant, as it's true iff mThread is not
null.

MozReview-Commit-ID: LV7YVrwJvGG

--HG--
extra : rebase_source : 23decadf249b9e63190b3e19d81edc4a090afcef
2017-06-15 14:10:05 +12:00
Gerald Squelart cb4bc96af2 Bug 1371882 - MEMORYBLOCKCACHE_ERRORS telemetry to catch unexpected errors without crashing - r=cpearce,francois
No errors are expected to happen in MemoryBlockCache (except a few
'InitAllocation', which would still be good to know about), but instead of
taking drastic measures in these cases (i.e., crash), I would prefer to
collect some telemetry first.

MozReview-Commit-ID: 4WdFS34lgzj

--HG--
extra : rebase_source : 5600d0b93d4d438d8cc9cf5a74d9fbf24fe2822e
2017-06-12 16:22:28 +12:00
Gerald Squelart b901a472b6 Bug 1371882 - Implement MemoryBlockCache - r=cpearce
Memory-backed block cache.
At initialization, allocates memory needed to store the expected content
length.
If MediaCache attempts to write/move beyond the expected size, we grow the
buffer accordingly, as we cannot fully trust HTTP headers. (Future patch will
ensure we put a limit to this growth.)

MozReview-Commit-ID: GHxYMGXYrwI

--HG--
rename : dom/media/MediaBlockCacheBase.h => dom/media/MemoryBlockCache.h
extra : rebase_source : 4fe263006839ba82a77d124f147adf5943cfa651
2017-06-09 15:37:23 +12:00