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 explicit Config(EGLint surface_type); | 16 Config(); |
17 ~Config(); | 17 ~Config(); |
18 bool Matches(const EGLint* attrib_list) const; | 18 |
19 bool GetAttrib(EGLint attribute, EGLint* value) const; | 19 bool GetAttrib(EGLint attribute, EGLint* value) const; |
20 static bool ValidateAttributeList(const EGLint* attrib_list); | |
21 | 20 |
22 private: | 21 private: |
23 // Total color component bits in the color buffer. | 22 // Total color component bits in the color buffer. |
24 EGLint buffer_size_; | 23 EGLint buffer_size_; |
25 // Bits of Red in the color buffer. | 24 // Bits of Red in the color buffer. |
26 EGLint red_size_; | 25 EGLint red_size_; |
27 // Bits of Green in the color buffer. | 26 // Bits of Green in the color buffer. |
28 EGLint green_size_; | 27 EGLint green_size_; |
29 // Bits of Blue in the color buffer. | 28 // Bits of Blue in the color buffer. |
30 EGLint blue_size_; | 29 EGLint blue_size_; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 EGLint transparent_green_value_; | 83 EGLint transparent_green_value_; |
85 // Transparent blue value | 84 // Transparent blue value |
86 EGLint transparent_blue_value_; | 85 EGLint transparent_blue_value_; |
87 | 86 |
88 DISALLOW_COPY_AND_ASSIGN(Config); | 87 DISALLOW_COPY_AND_ASSIGN(Config); |
89 }; | 88 }; |
90 | 89 |
91 } // namespace egl | 90 } // namespace egl |
92 | 91 |
93 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_ | 92 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_ |
OLD | NEW |