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

Side by Side Diff: gpu/command_buffer/client/client_context_state_impl_autogen.h

Issue 247283005: Update GPU command buffer auto formatting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Remove mojo/ change. Created 6 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 | « no previous file | gpu/command_buffer/client/gles2_c_lib_autogen.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
11 // It is included by client_context_state.cc 11 // It is included by client_context_state.cc
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_IMPL_AUTOGEN_H_ 12 #ifndef GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_IMPL_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_IMPL_AUTOGEN_H_ 13 #define GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_IMPL_AUTOGEN_H_
14 14
15 ClientContextState::EnableFlags::EnableFlags() 15 ClientContextState::EnableFlags::EnableFlags()
16 : blend(false), 16 : blend(false),
17 cull_face(false), 17 cull_face(false),
18 depth_test(false), 18 depth_test(false),
19 dither(true), 19 dither(true),
20 polygon_offset_fill(false), 20 polygon_offset_fill(false),
21 sample_alpha_to_coverage(false), 21 sample_alpha_to_coverage(false),
22 sample_coverage(false), 22 sample_coverage(false),
23 scissor_test(false), 23 scissor_test(false),
24 stencil_test(false) {} 24 stencil_test(false) {
25 }
25 26
26 bool ClientContextState::SetCapabilityState(GLenum cap, 27 bool ClientContextState::SetCapabilityState(GLenum cap,
27 bool enabled, 28 bool enabled,
28 bool* changed) { 29 bool* changed) {
29 *changed = false; 30 *changed = false;
30 switch (cap) { 31 switch (cap) {
31 case GL_BLEND: 32 case GL_BLEND:
32 if (enable_flags.blend != enabled) { 33 if (enable_flags.blend != enabled) {
33 *changed = true; 34 *changed = true;
34 enable_flags.blend = enabled; 35 enable_flags.blend = enabled;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 *enabled = enable_flags.scissor_test; 114 *enabled = enable_flags.scissor_test;
114 return true; 115 return true;
115 case GL_STENCIL_TEST: 116 case GL_STENCIL_TEST:
116 *enabled = enable_flags.stencil_test; 117 *enabled = enable_flags.stencil_test;
117 return true; 118 return true;
118 default: 119 default:
119 return false; 120 return false;
120 } 121 }
121 } 122 }
122 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_IMPL_AUTOGEN_H_ 123 #endif // GPU_COMMAND_BUFFER_CLIENT_CLIENT_CONTEXT_STATE_IMPL_AUTOGEN_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698