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 #include "gpu/gles2_conform_support/egl/config.h" | 5 #include "gpu/gles2_conform_support/egl/config.h" |
6 | 6 |
7 namespace egl { | 7 namespace egl { |
8 | 8 |
9 Config::Config() | 9 Config::Config() |
10 : buffer_size_(0), | 10 : buffer_size_(0), |
11 red_size_(0), | 11 red_size_(0), |
12 green_size_(0), | 12 green_size_(0), |
13 blue_size_(0), | 13 blue_size_(0), |
14 luminance_size_(0), | 14 luminance_size_(0), |
15 alpha_size_(0), | 15 alpha_size_(0), |
16 alpha_mask_size_(0), | 16 alpha_mask_size_(0), |
17 bind_to_texture_rgb_(EGL_DONT_CARE), | 17 bind_to_texture_rgb_(EGL_TRUE), |
18 bind_to_texture_rgba_(EGL_DONT_CARE), | 18 bind_to_texture_rgba_(EGL_TRUE), |
piman
2014/07/24 21:49:06
Make both of these EGL_FALSE. We don't support pbu
Peter Kasting
2014/07/24 21:52:09
Done. I only picked EGL_TRUE because EGL_DONT_CAR
| |
19 color_buffer_type_(EGL_RGB_BUFFER), | 19 color_buffer_type_(EGL_RGB_BUFFER), |
20 config_caveat_(EGL_DONT_CARE), | 20 config_caveat_(EGL_NONE), |
21 config_id_(EGL_DONT_CARE), | 21 config_id_(EGL_DONT_CARE), |
22 conformant_(EGL_OPENGL_ES2_BIT), | 22 conformant_(EGL_OPENGL_ES2_BIT), |
23 depth_size_(0), | 23 depth_size_(0), |
24 level_(0), | 24 level_(0), |
25 max_pbuffer_width_(0), | 25 max_pbuffer_width_(0), |
26 max_pbuffer_height_(0), | 26 max_pbuffer_height_(0), |
27 max_pbuffer_pixels_(0), | 27 max_pbuffer_pixels_(0), |
28 min_swap_interval_(EGL_DONT_CARE), | 28 min_swap_interval_(EGL_DONT_CARE), |
29 max_swap_interval_(EGL_DONT_CARE), | 29 max_swap_interval_(EGL_DONT_CARE), |
30 native_renderable_(EGL_DONT_CARE), | 30 native_renderable_(EGL_TRUE), |
31 native_visual_id_(0), | 31 native_visual_id_(0), |
32 native_visual_type_(EGL_DONT_CARE), | 32 native_visual_type_(EGL_DONT_CARE), |
33 renderable_type_(EGL_OPENGL_ES2_BIT), | 33 renderable_type_(EGL_OPENGL_ES2_BIT), |
34 sample_buffers_(0), | 34 sample_buffers_(0), |
35 samples_(0), | 35 samples_(0), |
36 stencil_size_(0), | 36 stencil_size_(0), |
37 surface_type_(EGL_WINDOW_BIT), | 37 surface_type_(EGL_WINDOW_BIT), |
38 transparent_type_(EGL_NONE), | 38 transparent_type_(EGL_NONE), |
39 transparent_red_value_(EGL_DONT_CARE), | 39 transparent_red_value_(EGL_DONT_CARE), |
40 transparent_green_value_(EGL_DONT_CARE), | 40 transparent_green_value_(EGL_DONT_CARE), |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 case EGL_TRANSPARENT_BLUE_VALUE: | 143 case EGL_TRANSPARENT_BLUE_VALUE: |
144 *value = transparent_blue_value_; | 144 *value = transparent_blue_value_; |
145 break; | 145 break; |
146 default: | 146 default: |
147 return false; | 147 return false; |
148 } | 148 } |
149 return true; | 149 return true; |
150 } | 150 } |
151 | 151 |
152 } // namespace egl | 152 } // namespace egl |
OLD | NEW |