Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4fe6b13 authored by Chong Zhang's avatar Chong Zhang
Browse files

Prime cache for tone mappers in mediaserver

Instantiate media side renderengine when mediaserver
starts, and prime shader cache for the tone mapper
shaders only.

bug: 140894732
bug: 135717526

test: manually check that shader should be compiled
already when test run for first time

Change-Id: Ib02569bec948838ace0f3162206dbbcadad5b641
parent 9ef4f8d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ cc_library_shared {
        "libpowermanager",
        "libstagefright",
        "libstagefright_foundation",
        "libstagefright_framecapture_utils",
        "libstagefright_httplive",
        "libutils",
    ],
+3 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@
#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>
@@ -447,6 +448,8 @@ MediaPlayerService::MediaPlayerService()
    mNextConnId = 1;

    MediaPlayerFactory::registerBuiltinFactories();
    // initialize the frame capture utilities
    (void)FrameCaptureProcessor::getInstance();
}

MediaPlayerService::~MediaPlayerService()