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

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: 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 3478 matching lines...) Expand 10 before | Expand all | Expand 10 after
3489 } 3489 }
3490 3490
3491 if (workarounds().gl_clear_broken) { 3491 if (workarounds().gl_clear_broken) {
3492 DCHECK(!clear_framebuffer_blit_.get()); 3492 DCHECK(!clear_framebuffer_blit_.get());
3493 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit"); 3493 LOCAL_COPY_REAL_GL_ERRORS_TO_WRAPPER("glClearWorkaroundInit");
3494 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this)); 3494 clear_framebuffer_blit_.reset(new ClearFramebufferResourceManager(this));
3495 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR) 3495 if (LOCAL_PEEK_GL_ERROR("glClearWorkaroundInit") != GL_NO_ERROR)
3496 return false; 3496 return false;
3497 } 3497 }
3498 3498
3499 if (group_->gpu_preferences().enable_gpu_driver_debug_logging &&
3500 feature_info_->feature_flags().khr_debug) {
3501 InitializeGLDebugLogging();
3502 }
3503
3499 return true; 3504 return true;
3500 } 3505 }
3501 3506
3502 Capabilities GLES2DecoderImpl::GetCapabilities() { 3507 Capabilities GLES2DecoderImpl::GetCapabilities() {
3503 DCHECK(initialized()); 3508 DCHECK(initialized());
3504 Capabilities caps; 3509 Capabilities caps;
3505 const gl::GLVersionInfo& version_info = gl_version_info(); 3510 const gl::GLVersionInfo& version_info = gl_version_info();
3506 caps.VisitPrecisions([&version_info]( 3511 caps.VisitPrecisions([&version_info](
3507 GLenum shader, GLenum type, 3512 GLenum shader, GLenum type,
3508 Capabilities::ShaderPrecision* shader_precision) { 3513 Capabilities::ShaderPrecision* shader_precision) {
(...skipping 15263 matching lines...) Expand 10 before | Expand all | Expand 10 after
18772 } 18777 }
18773 18778
18774 // Include the auto-generated part of this file. We split this because it means 18779 // Include the auto-generated part of this file. We split this because it means
18775 // we can easily edit the non-auto generated parts right here in this file 18780 // we can easily edit the non-auto generated parts right here in this file
18776 // instead of having to edit some template or the code generator. 18781 // instead of having to edit some template or the code generator.
18777 #include "base/macros.h" 18782 #include "base/macros.h"
18778 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 18783 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
18779 18784
18780 } // namespace gles2 18785 } // namespace gles2
18781 } // namespace gpu 18786 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698