Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(775)

Side by Side Diff: gpu/gles2_conform_support/egl/config.h

Issue 1714883002: command_buffer_gles2: Implement EGL default Display as a global object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command_buffer_gles2-multiple-contexts
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/gles2_conform_support/egl/BUILD.gn ('k') | gpu/gles2_conform_support/egl/config.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/BUILD.gn ('k') | gpu/gles2_conform_support/egl/config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698