blob: c2761b89a47ddcd333d28954ac3bc5d8abe90647 [file] [log] [blame]
Mathias Agopian41f673c2011-11-17 17:48:35 -08001/*
2 * Copyright (C) 2011 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
17#ifndef ANDROID_PRIVATE_GUI_COMPOSER_SERVICE_H
18#define ANDROID_PRIVATE_GUI_COMPOSER_SERVICE_H
19
20#include <stdint.h>
21#include <sys/types.h>
22
23#include <utils/Singleton.h>
24#include <utils/StrongPointer.h>
25
26
27namespace android {
28
29// ---------------------------------------------------------------------------
30
31class IMemoryHeap;
32class ISurfaceComposer;
Mathias Agopian41f673c2011-11-17 17:48:35 -080033
34// ---------------------------------------------------------------------------
35
36class ComposerService : public Singleton<ComposerService>
37{
38 // these are constants
39 sp<ISurfaceComposer> mComposerService;
Mathias Agopian41f673c2011-11-17 17:48:35 -080040 ComposerService();
41 friend class Singleton<ComposerService>;
42public:
43 static sp<ISurfaceComposer> getComposerService();
Mathias Agopian41f673c2011-11-17 17:48:35 -080044};
45
46// ---------------------------------------------------------------------------
47}; // namespace android
48
49#endif // ANDROID_PRIVATE_GUI_COMPOSER_SERVICE_H