OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_GLES2_CONFORM_TEST_CONFIG_H_ | 5 #ifndef GPU_GLES2_CONFORM_TEST_CONFIG_H_ |
6 #define GPU_GLES2_CONFORM_TEST_CONFIG_H_ | 6 #define GPU_GLES2_CONFORM_TEST_CONFIG_H_ |
7 | 7 |
8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace egl { | 12 namespace egl { |
13 | 13 |
14 class Config { | 14 class Config { |
15 public: | 15 public: |
16 Config(); | 16 explicit Config(EGLint surface_type); |
17 ~Config(); | 17 ~Config(); |
18 | 18 bool Matches(const EGLint* attrib_list) const; |
19 bool GetAttrib(EGLint attribute, EGLint* value) const; | 19 bool GetAttrib(EGLint attribute, EGLint* value) const; |
| 20 static bool ValidateAttributeList(const EGLint* attrib_list); |
20 | 21 |
21 private: | 22 private: |
22 // Total color component bits in the color buffer. | 23 // Total color component bits in the color buffer. |
23 EGLint buffer_size_; | 24 EGLint buffer_size_; |
24 // Bits of Red in the color buffer. | 25 // Bits of Red in the color buffer. |
25 EGLint red_size_; | 26 EGLint red_size_; |
26 // Bits of Green in the color buffer. | 27 // Bits of Green in the color buffer. |
27 EGLint green_size_; | 28 EGLint green_size_; |
28 // Bits of Blue in the color buffer. | 29 // Bits of Blue in the color buffer. |
29 EGLint blue_size_; | 30 EGLint blue_size_; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 EGLint transparent_green_value_; | 84 EGLint transparent_green_value_; |
84 // Transparent blue value | 85 // Transparent blue value |
85 EGLint transparent_blue_value_; | 86 EGLint transparent_blue_value_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(Config); | 88 DISALLOW_COPY_AND_ASSIGN(Config); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace egl | 91 } // namespace egl |
91 | 92 |
92 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_ | 93 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_ |
OLD | NEW |