• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1-------------------------------------------------------------------------
2drawElements Quality Program Test Specification
3-----------------------------------------------
4
5Copyright 2014 The Android Open Source Project
6
7Licensed under the Apache License, Version 2.0 (the "License");
8you may not use this file except in compliance with the License.
9You may obtain a copy of the License at
10
11     http://www.apache.org/licenses/LICENSE-2.0
12
13Unless required by applicable law or agreed to in writing, software
14distributed under the License is distributed on an "AS IS" BASIS,
15WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16See the License for the specific language governing permissions and
17limitations under the License.
18-------------------------------------------------------------------------
19    Title
20
21Tests:
22 + dEQP-EGL.functional.resize.*
23
24Includes:
25 + EGL_WIDTH and EGL_HEIGHT
26 + Preservation of back buffer contents
27 + EGL_*_RESOLUTION consistency
28
29Excludes:
30 + Preservation of front buffer contents
31
32Description:
33
34Checks for EGL surface behavior when the surface's native window is resized by external means.
35
36The surface_size.* tests resize the native window and call
37eglSwapBuffers(). Then EGL_WIDTH and EGL_HEIGHT are checked to verify
38that they report the new native window size.
39
40The back_buffer.* tests create an EGL_BUFFER_PRESERVED surface and draw
41a test image on it. The native window is resized, and the back buffer is
42checked to see that it is similar to the original test image in some
43corner.
44
45The pixel_density.* tests query the EGL_HORIZONTAL_RESOLUTION and
46EGL_VERTICAL_RESOLUTION attributes of the surface both before and after
47resizing. These are compared to the size of the native image in physical
48display pixels. An error is reported if the results are inconsistent,
49i.e. if they imply that the size of a physical display pixel changed
50size during resizing.
51