diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webgl/webgl_program.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/webgl/webgl_program.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webgl/webgl_program.cc b/chromium/third_party/blink/renderer/modules/webgl/webgl_program.cc index 4c6e51707f4..dc72854384c 100644 --- a/chromium/third_party/blink/renderer/modules/webgl/webgl_program.cc +++ b/chromium/third_party/blink/renderer/modules/webgl/webgl_program.cc @@ -74,6 +74,14 @@ bool WebGLProgram::LinkStatus(WebGLRenderingContextBase* context) { return link_status_; } +bool WebGLProgram::CompletionStatus(WebGLRenderingContextBase* context) { + GLint completed = 0; + gpu::gles2::GLES2Interface* gl = context->ContextGL(); + gl->GetProgramiv(object_, GL_COMPLETION_STATUS_KHR, &completed); + + return completed; +} + void WebGLProgram::IncreaseLinkCount() { ++link_count_; info_valid_ = false; |