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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 2472703003: Load the GL_KHR_debug entry points and log messages they produce. (Closed)
Patch Set: Update window system string Created 4 years, 1 month 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_utils.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698