Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QtSurfaceTextureHolder.java
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4package org.qtproject.qt.android.multimedia;
5
6import android.view.SurfaceHolder;
7import android.view.Surface;
8import android.graphics.Rect;
9import android.graphics.Canvas;
10
11public class QtSurfaceTextureHolder implements SurfaceHolder
12{
13 private Surface surfaceTexture;
14
15 public QtSurfaceTextureHolder(Surface surface)
16 {
17 surfaceTexture = surface;
18 }
19
20 @Override
21 public void addCallback(SurfaceHolder.Callback callback)
22 {
23 }
24
25 @Override
26 public Surface getSurface()
27 {
28 return surfaceTexture;
29 }
30
31 @Override
32 public Rect getSurfaceFrame()
33 {
34 return new Rect();
35 }
36
37 @Override
38 public boolean isCreating()
39 {
40 return false;
41 }
42
43 @Override
44 public Canvas lockCanvas(Rect dirty)
45 {
46 return new Canvas();
47 }
48
49 @Override
50 public Canvas lockCanvas()
51 {
52 return new Canvas();
53 }
54
55 @Override
56 public void removeCallback(SurfaceHolder.Callback callback)
57 {
58 }
59
60 @Override
61 public void setFixedSize(int width, int height)
62 {
63 }
64
65 @Override
66 public void setFormat(int format)
67 {
68 }
69
70 @Override
71 public void setKeepScreenOn(boolean screenOn)
72 {
73 }
74
75 @Override
76 public void setSizeFromLayout()
77 {
78 }
79
80 @Override
81 public void setType(int type)
82 {
83 }
84
85 @Override
86 public void unlockCanvasAndPost(Canvas canvas)
87 {
88 }
89}
GLint GLsizei GLsizei height
GLint GLsizei width
GLenum type
GLint GLsizei GLsizei GLenum format