Chromium Code Reviews| 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 "base/macros.h" | |
|
piman
2016/02/23 23:37:16
nit: the style guide puts system headers (in <>) b
Kimmo Kinnunen
2016/02/24 07:33:26
Done.
| |
| 8 #include <EGL/egl.h> | 9 #include <EGL/egl.h> |
| 9 | 10 |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 namespace egl { | 11 namespace egl { |
| 13 | 12 |
| 14 class Config { | 13 class Config { |
| 15 public: | 14 public: |
| 16 Config(); | 15 Config(EGLint surface_type); |
|
piman
2016/02/23 23:37:16
nit: explicit
Kimmo Kinnunen
2016/02/24 07:33:26
Done.
| |
| 17 ~Config(); | 16 ~Config(); |
| 18 | 17 bool matches(const EGLint* attrib_list) const; |
|
piman
2016/02/23 23:37:16
style nit: lower_with_underscore style is reserved
Kimmo Kinnunen
2016/02/24 07:33:26
Done.
| |
| 19 bool GetAttrib(EGLint attribute, EGLint* value) const; | 18 bool GetAttrib(EGLint attribute, EGLint* value) const; |
| 19 static bool ValidateAttributeList(const EGLint* attrib_list); | |
| 20 | 20 |
| 21 private: | 21 private: |
| 22 // Total color component bits in the color buffer. | 22 // Total color component bits in the color buffer. |
| 23 EGLint buffer_size_; | 23 EGLint buffer_size_; |
| 24 // Bits of Red in the color buffer. | 24 // Bits of Red in the color buffer. |
| 25 EGLint red_size_; | 25 EGLint red_size_; |
| 26 // Bits of Green in the color buffer. | 26 // Bits of Green in the color buffer. |
| 27 EGLint green_size_; | 27 EGLint green_size_; |
| 28 // Bits of Blue in the color buffer. | 28 // Bits of Blue in the color buffer. |
| 29 EGLint blue_size_; | 29 EGLint blue_size_; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 EGLint transparent_green_value_; | 83 EGLint transparent_green_value_; |
| 84 // Transparent blue value | 84 // Transparent blue value |
| 85 EGLint transparent_blue_value_; | 85 EGLint transparent_blue_value_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(Config); | 87 DISALLOW_COPY_AND_ASSIGN(Config); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace egl | 90 } // namespace egl |
| 91 | 91 |
| 92 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_ | 92 #endif // GPU_GLES2_CONFORM_TEST_CONFIG_H_ |
| OLD | NEW |