blob: a31decd3a381c70af4c2105d13671f6e689bc2c9 [file] [log] [blame]
Chia-I Wub0b5a4d2016-10-17 14:56:15 +08001/*
2 * Copyright 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Chia-I Wu16624b62017-02-02 09:03:20 -080017#define LOG_TAG "android.hardware.graphics.composer@2.1-service"
18
19#include <android/hardware/graphics/composer/2.1/IComposer.h>
Chia-I Wub0b5a4d2016-10-17 14:56:15 +080020
21#include <binder/ProcessState.h>
Chia-I Wu16624b62017-02-02 09:03:20 -080022#include <hidl/LegacySupport.h>
Chia-I Wub0b5a4d2016-10-17 14:56:15 +080023
Chia-I Wub0b5a4d2016-10-17 14:56:15 +080024using android::hardware::graphics::composer::V2_1::IComposer;
Chia-I Wu16624b62017-02-02 09:03:20 -080025using android::hardware::defaultPassthroughServiceImplementation;
Chia-I Wub0b5a4d2016-10-17 14:56:15 +080026
Chia-I Wu16624b62017-02-02 09:03:20 -080027int main() {
Chia-I Wub0b5a4d2016-10-17 14:56:15 +080028 // the conventional HAL might start binder services
29 android::ProcessState::self()->setThreadPoolMaxThreadCount(4);
30 android::ProcessState::self()->startThreadPool();
31
Chia-I Wu16624b62017-02-02 09:03:20 -080032 return defaultPassthroughServiceImplementation<IComposer>("hwcomposer");
Chia-I Wub0b5a4d2016-10-17 14:56:15 +080033}