1a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian/*
2a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * Copyright (C) 2011 The Android Open Source Project
3a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian *
4a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * Licensed under the Apache License, Version 2.0 (the "License");
5a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * you may not use this file except in compliance with the License.
6a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * You may obtain a copy of the License at
7a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian *
8a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian *      http://www.apache.org/licenses/LICENSE-2.0
9a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian *
10a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * Unless required by applicable law or agreed to in writing, software
11a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * distributed under the License is distributed on an "AS IS" BASIS,
12a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * See the License for the specific language governing permissions and
14a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian * limitations under the License.
15a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian */
16a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
17a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#ifndef ANDROID_SURFACE_TEXTURE_LAYER_H
18a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#define ANDROID_SURFACE_TEXTURE_LAYER_H
19a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
20a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#include <stdlib.h>
21a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#include <stdint.h>
22a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#include <sys/types.h>
23a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
24a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#include <utils/Errors.h>
25b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam#include <gui/BufferQueue.h>
26a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
27a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopiannamespace android {
28a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian// ---------------------------------------------------------------------------
29a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
30a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopianclass Layer;
31a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
32b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam// SurfaceTextureLayer is now a BufferQueue since SurfaceTexture has been
33b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam// refactored
34b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lamclass SurfaceTextureLayer : public BufferQueue
35a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian{
36a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopianpublic:
37b267579ba8dfe3f47d2a481c5a3c2254e3d565a1Daniel Lam    SurfaceTextureLayer();
38a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian    ~SurfaceTextureLayer();
39a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
4024202f5676c32edeef6544cf36e06b9fc970dbdeMathias Agopian    virtual status_t connect(int api, QueueBufferOutput* output);
41a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian};
42a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
43a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian// ---------------------------------------------------------------------------
44a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian}; // namespace android
45a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian
46a67932fe6864ac346e7f78b86df11cf6c5344137Mathias Agopian#endif // ANDROID_SURFACE_TEXTURE_LAYER_H
47