| OLD | NEW |
| 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/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 3177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3188 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); | 3188 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); |
| 3189 } | 3189 } |
| 3190 | 3190 |
| 3191 if (feature_info_->workarounds().unbind_fbo_on_context_switch) { | 3191 if (feature_info_->workarounds().unbind_fbo_on_context_switch) { |
| 3192 context_->SetUnbindFboOnMakeCurrent(); | 3192 context_->SetUnbindFboOnMakeCurrent(); |
| 3193 } | 3193 } |
| 3194 | 3194 |
| 3195 if (workarounds().gl_clear_broken) { | 3195 if (workarounds().gl_clear_broken) { |
| 3196 DCHECK(!clear_framebuffer_blit_.get()); | 3196 DCHECK(!clear_framebuffer_blit_.get()); |
| 3197 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); | 3197 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); |
| 3198 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this)); | 3198 clear_framebuffer_blit_.reset( |
| 3199 new ClearFramebufferResourceManager(this, features())); |
| 3199 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) | 3200 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) |
| 3200 return false; | 3201 return false; |
| 3201 } | 3202 } |
| 3202 | 3203 |
| 3203 return true; | 3204 return true; |
| 3204 } | 3205 } |
| 3205 | 3206 |
| 3206 Capabilities GLES2DecoderImpl::GetCapabilities() { | 3207 Capabilities GLES2DecoderImpl::GetCapabilities() { |
| 3207 DCHECK(initialized()); | 3208 DCHECK(initialized()); |
| 3208 Capabilities caps; | 3209 Capabilities caps; |
| (...skipping 13764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16973 } | 16974 } |
| 16974 | 16975 |
| 16975 // Include the auto-generated part of this file. We split this because it means | 16976 // Include the auto-generated part of this file. We split this because it means |
| 16976 // we can easily edit the non-auto generated parts right here in this file | 16977 // we can easily edit the non-auto generated parts right here in this file |
| 16977 // instead of having to edit some template or the code generator. | 16978 // instead of having to edit some template or the code generator. |
| 16978 #include "base/macros.h" | 16979 #include "base/macros.h" |
| 16979 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16980 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 16980 | 16981 |
| 16981 } // namespace gles2 | 16982 } // namespace gles2 |
| 16982 } // namespace gpu | 16983 } // namespace gpu |
| OLD | NEW |