summaryrefslogtreecommitdiff
path: root/hwc2/common/composers/Composers.cpp (plain)
blob: a8ac50ff8ea271809b139e0c753519520c8abc6c
1/*
2// Copyright (c) 2016 Amlogic
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*/
17
18
19#include <HwcTrace.h>
20#include <Composers.h>
21#include <IDisplayDevice.h>
22
23
24namespace android {
25namespace amlogic {
26
27Composers::Composers(IDisplayDevice& disp)
28 : mDisplayDevice(disp),
29 mInitialized(false)
30{
31}
32
33Composers::~Composers()
34{
35 WARN_IF_NOT_DEINIT();
36}
37
38bool Composers::initialize(framebuffer_info_t* fbInfo)
39{
40 if (mInitialized) {
41 WTRACE("object has been initialized");
42 return true;
43 }
44
45 mInitialized = true;
46 return true;
47}
48
49void Composers::deinitialize()
50{
51 mInitialized = false;
52}
53
54} // namespace amlogic
55} // namesapce android
56
57