Revert "Prime cache for tone mappers in mediaserver"

This reverts commit d4fe6b1339.

Reason for revert:
This CL was meant to pre-init the RenderEngine to save time
on the actual thumbnail extraction. But it is using more
memory after boot.

Since HDR clips are less common at present, we'll delay the
init to first use for now.

bug: b/147047966
test: atest android.media.cts.MediaMetadataRetrieverTest

Change-Id: I5b8799bbe2f4ae496e15b5ba699203223fe3013b
gugelfrei
Chong Zhang 5 years ago
parent d4fe6b1339
commit bf4f332a55

@ -39,7 +39,6 @@ cc_library_shared {
"libpowermanager",
"libstagefright",
"libstagefright_foundation",
"libstagefright_framecapture_utils",
"libstagefright_httplive",
"libutils",
],

@ -58,7 +58,6 @@
#include <media/Metadata.h>
#include <media/AudioTrack.h>
#include <media/MemoryLeakTrackUtil.h>
#include <media/stagefright/FrameCaptureProcessor.h>
#include <media/stagefright/InterfaceUtils.h>
#include <media/stagefright/MediaCodecConstants.h>
#include <media/stagefright/MediaCodecList.h>
@ -448,8 +447,6 @@ MediaPlayerService::MediaPlayerService()
mNextConnId = 1;
MediaPlayerFactory::registerBuiltinFactories();
// initialize the frame capture utilities
(void)FrameCaptureProcessor::getInstance();
}
MediaPlayerService::~MediaPlayerService()

Loading…
Cancel
Save