OLD | NEW |
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 |
(...skipping 4853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4864 return true; | 4864 return true; |
4865 } | 4865 } |
4866 return false; | 4866 return false; |
4867 case GL_STENCIL_TEST: | 4867 case GL_STENCIL_TEST: |
4868 state_.enable_flags.stencil_test = enabled; | 4868 state_.enable_flags.stencil_test = enabled; |
4869 if (state_.enable_flags.cached_stencil_test != enabled || | 4869 if (state_.enable_flags.cached_stencil_test != enabled || |
4870 state_.ignore_cached_state) { | 4870 state_.ignore_cached_state) { |
4871 framebuffer_state_.clear_state_dirty = true; | 4871 framebuffer_state_.clear_state_dirty = true; |
4872 } | 4872 } |
4873 return false; | 4873 return false; |
| 4874 case GL_RASTERIZER_DISCARD: |
| 4875 state_.enable_flags.rasterizer_discard = enabled; |
| 4876 if (state_.enable_flags.cached_rasterizer_discard != enabled || |
| 4877 state_.ignore_cached_state) { |
| 4878 state_.enable_flags.cached_rasterizer_discard = enabled; |
| 4879 return true; |
| 4880 } |
| 4881 return false; |
4874 default: | 4882 default: |
4875 NOTREACHED(); | 4883 NOTREACHED(); |
4876 return false; | 4884 return false; |
4877 } | 4885 } |
4878 } | 4886 } |
4879 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ | 4887 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_AUTOGEN_H_ |
OLD | NEW |