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

Side by Side Diff: gpu/command_buffer/common/capabilities.cc

Issue 1135943002: Pull in various gpu/command_buffer fixes from chromium (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/command_buffer/common/capabilities.h ('k') | gpu/command_buffer/common/constants.h » ('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 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 #include "gpu/command_buffer/common/capabilities.h" 5 #include "gpu/command_buffer/common/capabilities.h"
6 6
7 namespace gpu { 7 namespace gpu {
8 8
9 Capabilities::PerStagePrecisions::PerStagePrecisions() { 9 Capabilities::PerStagePrecisions::PerStagePrecisions() {
10 } 10 }
11 11
12 Capabilities::Capabilities() 12 Capabilities::Capabilities()
13 : max_combined_texture_image_units(0), 13 : max_combined_texture_image_units(0),
14 max_cube_map_texture_size(0), 14 max_cube_map_texture_size(0),
15 max_fragment_uniform_vectors(0), 15 max_fragment_uniform_vectors(0),
16 max_renderbuffer_size(0), 16 max_renderbuffer_size(0),
17 max_texture_image_units(0), 17 max_texture_image_units(0),
18 max_texture_size(0), 18 max_texture_size(0),
19 max_varying_vectors(0), 19 max_varying_vectors(0),
20 max_vertex_attribs(0), 20 max_vertex_attribs(0),
21 max_vertex_texture_image_units(0), 21 max_vertex_texture_image_units(0),
22 max_vertex_uniform_vectors(0), 22 max_vertex_uniform_vectors(0),
23 num_compressed_texture_formats(0), 23 num_compressed_texture_formats(0),
24 num_shader_binary_formats(0), 24 num_shader_binary_formats(0),
25 bind_generates_resource_chromium(0), 25 bind_generates_resource_chromium(0),
26 max_3d_texture_size(0),
27 max_array_texture_layers(0),
28 max_color_attachments(0),
29 max_combined_fragment_uniform_components(0),
30 max_combined_uniform_blocks(0),
31 max_combined_vertex_uniform_components(0),
32 max_draw_buffers(0),
33 max_element_index(0),
34 max_elements_indices(0),
35 max_elements_vertices(0),
36 max_fragment_input_components(0),
37 max_fragment_uniform_blocks(0),
38 max_fragment_uniform_components(0),
39 max_program_texel_offset(0),
40 max_samples(0),
41 max_server_wait_timeout(0),
42 max_transform_feedback_interleaved_components(0),
26 max_transform_feedback_separate_attribs(0), 43 max_transform_feedback_separate_attribs(0),
44 max_transform_feedback_separate_components(0),
45 max_uniform_block_size(0),
27 max_uniform_buffer_bindings(0), 46 max_uniform_buffer_bindings(0),
47 max_varying_components(0),
48 max_vertex_output_components(0),
49 max_vertex_uniform_blocks(0),
50 max_vertex_uniform_components(0),
51 min_program_texel_offset(0),
52 num_extensions(0),
53 num_program_binary_formats(0),
28 uniform_buffer_offset_alignment(1), 54 uniform_buffer_offset_alignment(1),
29 post_sub_buffer(false), 55 post_sub_buffer(false),
30 egl_image_external(false), 56 egl_image_external(false),
31 texture_format_atc(false), 57 texture_format_atc(false),
32 texture_format_bgra8888(false), 58 texture_format_bgra8888(false),
33 texture_format_dxt1(false), 59 texture_format_dxt1(false),
34 texture_format_dxt5(false), 60 texture_format_dxt5(false),
35 texture_format_etc1(false), 61 texture_format_etc1(false),
36 texture_format_etc1_npot(false), 62 texture_format_etc1_npot(false),
37 texture_rectangle(false), 63 texture_rectangle(false),
38 iosurface(false), 64 iosurface(false),
39 texture_usage(false), 65 texture_usage(false),
40 texture_storage(false), 66 texture_storage(false),
41 discard_framebuffer(false), 67 discard_framebuffer(false),
42 sync_query(false), 68 sync_query(false),
43 image(false), 69 image(false),
44 future_sync_points(false), 70 future_sync_points(false),
45 blend_equation_advanced(false), 71 blend_equation_advanced(false),
46 blend_equation_advanced_coherent(false), 72 blend_equation_advanced_coherent(false),
47 texture_rg(false) { 73 texture_rg(false),
74 major_version(2),
75 minor_version(0) {
48 } 76 }
49 77
50 } // namespace gpu 78 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/command_buffer/common/constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698