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

Side by Side Diff: gpu/command_buffer/service/context_group.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/service/context_group.h" 5 #include "gpu/command_buffer/service/context_group.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 22 matching lines...) Expand all
33 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, 33 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache,
34 const scoped_refptr<FeatureInfo>& feature_info, 34 const scoped_refptr<FeatureInfo>& feature_info,
35 const scoped_refptr<SubscriptionRefSet>& subscription_ref_set, 35 const scoped_refptr<SubscriptionRefSet>& subscription_ref_set,
36 const scoped_refptr<ValueStateMap>& pending_valuebuffer_state, 36 const scoped_refptr<ValueStateMap>& pending_valuebuffer_state,
37 bool bind_generates_resource) 37 bool bind_generates_resource)
38 : mailbox_manager_(mailbox_manager), 38 : mailbox_manager_(mailbox_manager),
39 memory_tracker_(memory_tracker), 39 memory_tracker_(memory_tracker),
40 shader_translator_cache_(shader_translator_cache), 40 shader_translator_cache_(shader_translator_cache),
41 subscription_ref_set_(subscription_ref_set), 41 subscription_ref_set_(subscription_ref_set),
42 pending_valuebuffer_state_(pending_valuebuffer_state), 42 pending_valuebuffer_state_(pending_valuebuffer_state),
43 enforce_gl_minimums_(CommandLine::ForCurrentProcess()->HasSwitch( 43 enforce_gl_minimums_(base::CommandLine::ForCurrentProcess()->HasSwitch(
44 switches::kEnforceGLMinimums)), 44 switches::kEnforceGLMinimums)),
45 bind_generates_resource_(bind_generates_resource), 45 bind_generates_resource_(bind_generates_resource),
46 max_vertex_attribs_(0u), 46 max_vertex_attribs_(0u),
47 max_texture_units_(0u), 47 max_texture_units_(0u),
48 max_texture_image_units_(0u), 48 max_texture_image_units_(0u),
49 max_vertex_texture_image_units_(0u), 49 max_vertex_texture_image_units_(0u),
50 max_fragment_uniform_vectors_(0u), 50 max_fragment_uniform_vectors_(0u),
51 max_varying_vectors_(0u), 51 max_varying_vectors_(0u),
52 max_vertex_uniform_vectors_(0u), 52 max_vertex_uniform_vectors_(0u),
53 max_color_attachments_(1u), 53 max_color_attachments_(1u),
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 GLenum pname, GLint min_required, uint32* v) { 403 GLenum pname, GLint min_required, uint32* v) {
404 uint32 value = 0; 404 uint32 value = 0;
405 GetIntegerv(pname, &value); 405 GetIntegerv(pname, &value);
406 bool result = CheckGLFeatureU(min_required, &value); 406 bool result = CheckGLFeatureU(min_required, &value);
407 *v = value; 407 *v = value;
408 return result; 408 return result;
409 } 409 }
410 410
411 } // namespace gles2 411 } // namespace gles2
412 } // namespace gpu 412 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_linux.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698