summaryrefslogtreecommitdiffstats
path: root/opengl/specs/EGL_ANDROID_framebuffer_target.txt
blob: 5a301aaff5d01088383b7b9175ecb92de00d3fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Name

    ANDROID_framebuffer_target

Name Strings

    EGL_ANDROID_framebuffer_target

Contributors

    Jamie Gennis

Contact

    Jamie Gennis, Google Inc. (jgennis 'at' google.com)

Status

    Complete

Version

    Version 1, September 20, 2012

Number

    EGL Extension #XXX

Dependencies

    Requires EGL 1.0

    This extension is written against the wording of the EGL 1.4 Specification

Overview

    Android supports a number of different ANativeWindow implementations that
    can be used to create an EGLSurface.  One implementation, which is used to
    send the result of performing window composition to a display, may have
    some device-specific restrictions.  Because of this, some EGLConfigs may
    be incompatible with these ANativeWindows.  This extension introduces a
    new boolean EGLConfig attribute that indicates whether the EGLConfig
    supports rendering to an ANativeWindow for which the buffers are passed to
    the HWComposer HAL as a framebuffer target layer.

New Types

    None.

New Procedures and Functions

    None.

New Tokens

    Accepted by the <attribute> parameter of eglGetConfigAttrib and
    the <attrib_list> parameter of eglChooseConfig:

        EGL_FRAMEBUFFER_TARGET_ANDROID         0x3147

Changes to Chapter 3 of the EGL 1.4 Specification (EGL Functions and Errors)

    Section 3.4, Configuration Management, add a row to Table 3.1.

              Attribute                    Type                  Notes
        ------------------------------    -------     ---------------------------
        EGL_FRAMEBUFFER_TARGET_ANDROID    boolean     whether use as a HWComposer
                                                      framebuffer target layer is
                                                      supported

    Section 3.4, Configuration Management, add a row to Table 3.4.

              Attribute                    Default     Selection  Sort   Sort
                                                       Criteria   Order  Priority
        ------------------------------  -------------  ---------  -----  --------
        EGL_FRAMEBUFFER_TARGET_ANDROID  EGL_DONT_CARE    Exact    None

    Section 3.4, Configuration Management, add a paragraph at the end of the
    subsection titled Other EGLConfig Attribute Descriptions.

        EGL_FRAMEBUFFER_TARGET_ANDROID is a boolean indicating whether the
        config may be used to create an EGLSurface from an ANativeWindow for
        which the buffers are to be passed to HWComposer as a framebuffer
        target layer.

    Section 3.4.1, Querying Configurations, change the last paragraph as follow

        EGLConfigs are not sorted with respect to the parameters
        EGL_BIND_TO_TEXTURE_RGB, EGL_BIND_TO_TEXTURE_RGBA, EGL_CONFORMANT,
        EGL_LEVEL, EGL_NATIVE_RENDERABLE, EGL_MAX_SWAP_INTERVAL,
        EGL_MIN_SWAP_INTERVAL, EGL_RENDERABLE_TYPE, EGL_SURFACE_TYPE,
        EGL_TRANSPARENT_TYPE, EGL_TRANSPARENT_RED_VALUE,
        EGL_TRANSPARENT_GREEN_VALUE, EGL_TRANSPARENT_BLUE_VALUE, and
        EGL_RECORDABLE_ANDROID.

Issues


Revision History

#1 (Jamie Gennis, September 20, 2012)
    - Initial draft.