summaryrefslogtreecommitdiff
path: root/graphics/composer/2.1/default/service.cpp
AgeCommit message (Collapse)Author
2020-10-16Merge SP1A.201015.001Scott Lobdell
Change-Id: I6c897691c5d6474603c6d45f7d4050bdadf606d6
2020-10-01composer: hold a sp<IComposer> from the service itselfAdy Abraham
IComposerClient assumes that IComposer will outlive its life cycle and holds a simple pointer to HwcHal. This change is taking the same approach of newer composer versions (2.2, 2.3, and 2.4) to make sure that IComposer would outlive IComposerClient. Test: coral booting with this change Fixes: 155769496 Change-Id: I3962ede51ce823368c62c4e4e5fb30f7a5680bdf
2018-07-26graphics: Optimize binder buffer allocationBharath Gopal
Optimize binder buffer allocation based on maximum page size observed during peak usage. CRs-Fixed: 2275027 Change-Id: I50ff14fb49382f286c3c07e959e2fb0e1e54a9ad
2017-05-12graphics: set maxThreads to 4 for the composerChia-I Wu
There are implmentations that can dead lock when calling certain functions in certain states. It works fine before HIDL because SurfaceFlinger calls those functions in another thread. We allow for 4 hwbinder threads in this commit to simulate how SurfaceFlinger calls hwcomposer. Bug: 38183197 Test: camera, videos, multi windows, screencap, screenrecord Change-Id: Ie05b2ca349b8c1ed9a3ac962981434f2efee92d9
2017-04-13composer: route binder traffic over vndbinderIliyan Malchev
b/36683636 Hwcomposer is starting binder threads Test: sailfish Change-Id: I28ad19b5036c6fbf514770369888ca11892bf212 Signed-off-by: Iliyan Malchev <malchev@google.com>
2017-02-22hwcomposer HAL uses "default" service nameYifan Hong
The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds Bug: 33844934 Change-Id: I3d51429681d834f53dc5f6765e97675eafdceda4
2017-02-10graphics: use FIFO scheduler in IComposerChia-I Wu
Make IComposer default implementation use the same process scheduler as SurfaceFlinger does. Bug: 35210697 Test: manual Change-Id: Ie2ebe1d3fd26505984d9f6c33d63b5db36b0b64a
2017-02-02graphics: get rid of BINDERIZEDChia-I Wu
It is always on now and all buffers be cloned and registered. Clients (SF) should make use of the buffer caching mechanism and pass each unique buffer once, to avoid the overhead. Test: manual Change-Id: I74ccbf74e110c8b413a66cfc60044b71ba3f44e3
2016-12-30Remove obsolete references to IPCThreadState/ProcessState.Martijn Coenen
Threadpool can now be configured/joined if needed with configureRpcThreadpool() / joinRpcThreadpool(). Bug: 31226656 Test: mma Change-Id: I0d7d9924cc8c8851cc2b61ebdae906204909890e
2016-10-19graphics: add IComposer service daemonChia-I Wu
Since HALs might run binder services, we need to start thread pool for both binder and hwbinder. Bug: 32021609 Test: builds and boots Change-Id: I9779e86b1e611a180b1984af36c417dafc3329bc