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 3591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3602 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); | 3602 glPointParameteri(GL_POINT_SPRITE_COORD_ORIGIN, GL_LOWER_LEFT); |
3603 } | 3603 } |
3604 | 3604 |
3605 if (workarounds().unbind_fbo_on_context_switch) { | 3605 if (workarounds().unbind_fbo_on_context_switch) { |
3606 context_->SetUnbindFboOnMakeCurrent(); | 3606 context_->SetUnbindFboOnMakeCurrent(); |
3607 } | 3607 } |
3608 | 3608 |
3609 if (workarounds().gl_clear_broken) { | 3609 if (workarounds().gl_clear_broken) { |
3610 DCHECK(!clear_framebuffer_blit_.get()); | 3610 DCHECK(!clear_framebuffer_blit_.get()); |
3611 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); | 3611 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); |
3612 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this)); | 3612 clear_framebuffer_blit_.reset( |
| 3613 new ClearFramebufferResourceManager(this, gl_version_info())); |
3613 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) | 3614 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) |
3614 return false; | 3615 return false; |
3615 } | 3616 } |
3616 | 3617 |
3617 if (group_->gpu_preferences().enable_gpu_driver_debug_logging && | 3618 if (group_->gpu_preferences().enable_gpu_driver_debug_logging && |
3618 feature_info_->feature_flags().khr_debug) { | 3619 feature_info_->feature_flags().khr_debug) { |
3619 InitializeGLDebugLogging(); | 3620 InitializeGLDebugLogging(); |
3620 } | 3621 } |
3621 | 3622 |
3622 return true; | 3623 return true; |
(...skipping 15890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
19513 } | 19514 } |
19514 | 19515 |
19515 // Include the auto-generated part of this file. We split this because it means | 19516 // Include the auto-generated part of this file. We split this because it means |
19516 // we can easily edit the non-auto generated parts right here in this file | 19517 // we can easily edit the non-auto generated parts right here in this file |
19517 // instead of having to edit some template or the code generator. | 19518 // instead of having to edit some template or the code generator. |
19518 #include "base/macros.h" | 19519 #include "base/macros.h" |
19519 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19520 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
19520 | 19521 |
19521 } // namespace gles2 | 19522 } // namespace gles2 |
19522 } // namespace gpu | 19523 } // namespace gpu |
OLD | NEW |