~bkerensa/ubuntu/trusty/libhybris/fix-for-1259341

« back to all changes in this revision

Viewing changes to .pc/0030-compat-media-also-support-decoding-with-playbin.patch/compat/media/surface_texture_client_hybris_priv.h

  • Committer: Package Import Robot
  • Author(s): Ricardo Salveti de Araujo
  • Date: 2013-09-27 13:54:55 UTC
  • Revision ID: package-import@ubuntu.com-20130927135455-rx3s2djbtx8tv982
Tags: 0.1.0+git20130606+c5d897a-0ubuntu29
* 0030-compat-media-also-support-decoding-with-playbin.patch:
  - Improving rendering/decoding handling to also work with playbin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2013 Canonical Ltd
 
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
 * Authored by: Jim Hodapp <jim.hodapp@canonical.com>
 
17
 */
 
18
 
 
19
#include <utils/Singleton.h>
 
20
#include <gui/SurfaceTextureClient.h>
 
21
 
 
22
struct _SurfaceTextureClientHybris : public android::SurfaceTextureClient,
 
23
                                     public android::Singleton<_SurfaceTextureClientHybris>
 
24
{
 
25
    friend class android::Singleton<_SurfaceTextureClientHybris>;
 
26
 
 
27
    _SurfaceTextureClientHybris();
 
28
    _SurfaceTextureClientHybris(const _SurfaceTextureClientHybris &stch);
 
29
    _SurfaceTextureClientHybris(const android::sp<android::ISurfaceTexture> &st);
 
30
    ~_SurfaceTextureClientHybris();
 
31
 
 
32
 
 
33
public:
 
34
    int dequeueBuffer(ANativeWindowBuffer** buffer, int* fenceFd);
 
35
    int queueBuffer(ANativeWindowBuffer* buffer, int fenceFd);
 
36
    void setISurfaceTexture(const android::sp<android::ISurfaceTexture>& surface_texture);
 
37
 
 
38
    unsigned int refcount;
 
39
    android::sp<android::SurfaceTexture> surface_texture;
 
40
};
 
41