| 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 3476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3487 } | 3487 } |
| 3488 | 3488 |
| 3489 if (workarounds().gl_clear_broken) { | 3489 if (workarounds().gl_clear_broken) { |
| 3490 DCHECK(!clear_framebuffer_blit_.get()); | 3490 DCHECK(!clear_framebuffer_blit_.get()); |
| 3491 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); | 3491 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); |
| 3492 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this)); | 3492 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this)); |
| 3493 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) | 3493 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) |
| 3494 return false; | 3494 return false; |
| 3495 } | 3495 } |
| 3496 | 3496 |
| 3497 if (group_->gpu_preferences().enable_gpu_driver_debug_logging && |
| 3498 feature_info_->feature_flags().khr_debug) { |
| 3499 InitializeGLDebugLogging(); |
| 3500 } |
| 3501 |
| 3497 return true; | 3502 return true; |
| 3498 } | 3503 } |
| 3499 | 3504 |
| 3500 Capabilities GLES2DecoderImpl::GetCapabilities() { | 3505 Capabilities GLES2DecoderImpl::GetCapabilities() { |
| 3501 DCHECK(initialized()); | 3506 DCHECK(initialized()); |
| 3502 Capabilities caps; | 3507 Capabilities caps; |
| 3503 const gl::GLVersionInfo& version_info = gl_version_info(); | 3508 const gl::GLVersionInfo& version_info = gl_version_info(); |
| 3504 caps.VisitPrecisions([&version_info]( | 3509 caps.VisitPrecisions([&version_info]( |
| 3505 GLenum shader, GLenum type, | 3510 GLenum shader, GLenum type, |
| 3506 Capabilities::ShaderPrecision* shader_precision) { | 3511 Capabilities::ShaderPrecision* shader_precision) { |
| (...skipping 15279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18786 } | 18791 } |
| 18787 | 18792 |
| 18788 // Include the auto-generated part of this file. We split this because it means | 18793 // Include the auto-generated part of this file. We split this because it means |
| 18789 // we can easily edit the non-auto generated parts right here in this file | 18794 // we can easily edit the non-auto generated parts right here in this file |
| 18790 // instead of having to edit some template or the code generator. | 18795 // instead of having to edit some template or the code generator. |
| 18791 #include "base/macros.h" | 18796 #include "base/macros.h" |
| 18792 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 18797 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 18793 | 18798 |
| 18794 } // namespace gles2 | 18799 } // namespace gles2 |
| 18795 } // namespace gpu | 18800 } // namespace gpu |
| OLD | NEW |