OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 5 #ifndef GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 6 #define GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "gpu/gpu_export.h" | 10 #include "gpu/gpu_export.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // actually have RGBA format. The client is responsible for handling most of | 161 // actually have RGBA format. The client is responsible for handling most of |
162 // the complexities associated with this. See | 162 // the complexities associated with this. See |
163 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt for more | 163 // gpu/GLES2/extensions/CHROMIUM/CHROMIUM_image.txt for more |
164 // details. | 164 // details. |
165 bool chromium_image_rgb_emulation = false; | 165 bool chromium_image_rgb_emulation = false; |
166 | 166 |
167 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to | 167 // When true, RGB framebuffer formats are unsupported. Emulate with RGBA to |
168 // work around this. See https://crbug.com/449150 for an example. | 168 // work around this. See https://crbug.com/449150 for an example. |
169 bool emulate_rgb_buffer_with_rgba = false; | 169 bool emulate_rgb_buffer_with_rgba = false; |
170 | 170 |
| 171 // When true, is safe to convert a canvas from software to accelerated. |
| 172 // See https://crbug.com/710029. |
| 173 bool software_to_accelerated_canvas_upgrade = true; |
| 174 |
171 int major_version = 2; | 175 int major_version = 2; |
172 int minor_version = 0; | 176 int minor_version = 0; |
173 }; | 177 }; |
174 | 178 |
175 } // namespace gpu | 179 } // namespace gpu |
176 | 180 |
177 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ | 181 #endif // GPU_COMMAND_BUFFER_COMMON_CAPABILITIES_H_ |
OLD | NEW |