GLConsumer.h revision d82bea798e5996e9cbf4ea4d31ea71f87ad9e952
1/*
2 * Copyright (C) 2010 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_GUI_CONSUMER_H
18#define ANDROID_GUI_CONSUMER_H
19
20#include <gui/BufferQueue.h>
21#include <gui/ConsumerBase.h>
22#include <gui/ISurfaceTexture.h>
23
24namespace android {
25
26class GLConsumer : public ConsumerBase {
27public:
28    GLConsumer(GLuint, bool = false, GLenum = 0, bool = false, const sp<BufferQueue>& = 0) :
29        ConsumerBase(0) {}
30    void incStrong(const void*) const {}
31    void decStrong(const void*) const {}
32    status_t updateTexImage() { return 0; }
33    void abandon() {}
34    sp<ISurfaceTexture> getBufferQueue() const { return 0; }
35    GLenum getCurrentTextureTarget() const { return 0; }
36    status_t setSynchronousMode(bool) { return 0; }
37    void getTransformMatrix(float[16]) {}
38    int64_t getTimestamp() {}
39    void setFrameAvailableListener(const wp<FrameAvailableListener>&) {}
40    sp<GraphicBuffer> getCurrentBuffer() const { return 0; }
41};
42
43}; // namespace android
44
45#endif // ANDROID_GUI_CONSUMER_H
46
47