1e5c31af7Sopenharmony_ci-------------------------------------------------------------------------
2e5c31af7Sopenharmony_cidrawElements Quality Program Test Specification
3e5c31af7Sopenharmony_ci-----------------------------------------------
4e5c31af7Sopenharmony_ci
5e5c31af7Sopenharmony_ciCopyright 2014 The Android Open Source Project
6e5c31af7Sopenharmony_ci
7e5c31af7Sopenharmony_ciLicensed under the Apache License, Version 2.0 (the "License");
8e5c31af7Sopenharmony_ciyou may not use this file except in compliance with the License.
9e5c31af7Sopenharmony_ciYou may obtain a copy of the License at
10e5c31af7Sopenharmony_ci
11e5c31af7Sopenharmony_ci     http://www.apache.org/licenses/LICENSE-2.0
12e5c31af7Sopenharmony_ci
13e5c31af7Sopenharmony_ciUnless required by applicable law or agreed to in writing, software
14e5c31af7Sopenharmony_cidistributed under the License is distributed on an "AS IS" BASIS,
15e5c31af7Sopenharmony_ciWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16e5c31af7Sopenharmony_ciSee the License for the specific language governing permissions and
17e5c31af7Sopenharmony_cilimitations under the License.
18e5c31af7Sopenharmony_ci-------------------------------------------------------------------------
19e5c31af7Sopenharmony_ci    Title
20e5c31af7Sopenharmony_ci
21e5c31af7Sopenharmony_ciTests:
22e5c31af7Sopenharmony_ci + dEQP-EGL.functional.resize.*
23e5c31af7Sopenharmony_ci
24e5c31af7Sopenharmony_ciIncludes:
25e5c31af7Sopenharmony_ci + EGL_WIDTH and EGL_HEIGHT
26e5c31af7Sopenharmony_ci + Preservation of back buffer contents
27e5c31af7Sopenharmony_ci + EGL_*_RESOLUTION consistency
28e5c31af7Sopenharmony_ci
29e5c31af7Sopenharmony_ciExcludes:
30e5c31af7Sopenharmony_ci + Preservation of front buffer contents
31e5c31af7Sopenharmony_ci
32e5c31af7Sopenharmony_ciDescription:
33e5c31af7Sopenharmony_ci
34e5c31af7Sopenharmony_ciChecks for EGL surface behavior when the surface's native window is resized by external means.
35e5c31af7Sopenharmony_ci
36e5c31af7Sopenharmony_ciThe surface_size.* tests resize the native window and call
37e5c31af7Sopenharmony_cieglSwapBuffers(). Then EGL_WIDTH and EGL_HEIGHT are checked to verify
38e5c31af7Sopenharmony_cithat they report the new native window size.
39e5c31af7Sopenharmony_ci
40e5c31af7Sopenharmony_ciThe back_buffer.* tests create an EGL_BUFFER_PRESERVED surface and draw
41e5c31af7Sopenharmony_cia test image on it. The native window is resized, and the back buffer is
42e5c31af7Sopenharmony_cichecked to see that it is similar to the original test image in some
43e5c31af7Sopenharmony_cicorner.
44e5c31af7Sopenharmony_ci
45e5c31af7Sopenharmony_ciThe pixel_density.* tests query the EGL_HORIZONTAL_RESOLUTION and
46e5c31af7Sopenharmony_ciEGL_VERTICAL_RESOLUTION attributes of the surface both before and after
47e5c31af7Sopenharmony_ciresizing. These are compared to the size of the native image in physical
48e5c31af7Sopenharmony_cidisplay pixels. An error is reported if the results are inconsistent,
49e5c31af7Sopenharmony_cii.e. if they imply that the size of a physical display pixel changed
50e5c31af7Sopenharmony_cisize during resizing.
51