| Index: cc/output/program_binding.h
|
| diff --git a/cc/output/program_binding.h b/cc/output/program_binding.h
|
| index 1d5132bdaea6828148ab4d996774a1569fd00ad2..8018cad76e34ca33ef3c6bbdf6abef44aef25d12 100644
|
| --- a/cc/output/program_binding.h
|
| +++ b/cc/output/program_binding.h
|
| @@ -42,6 +42,8 @@ class ProgramBindingBase {
|
| unsigned fragment_shader);
|
| void CleanupShaders(gpu::gles2::GLES2Interface* context);
|
|
|
| + bool IsContextLost(gpu::gles2::GLES2Interface* context);
|
| +
|
| unsigned program_;
|
| unsigned vertex_shader_id_;
|
| unsigned fragment_shader_id_;
|
| @@ -79,7 +81,7 @@ class ProgramBinding : public ProgramBindingBase {
|
| DCHECK(context_provider);
|
| DCHECK(!initialized_);
|
|
|
| - if (context_provider->IsContextLost())
|
| + if (IsContextLost(context_provider->ContextGL()))
|
| return;
|
|
|
| fragment_shader_.set_blend_mode(blend_mode);
|
| @@ -89,7 +91,7 @@ class ProgramBinding : public ProgramBindingBase {
|
| context_provider->ContextGL(),
|
| vertex_shader_.GetShaderString(),
|
| fragment_shader_.GetShaderString(precision, sampler))) {
|
| - DCHECK(context_provider->IsContextLost());
|
| + DCHECK(IsContextLost(context_provider->ContextGL()));
|
| return;
|
| }
|
|
|
| @@ -101,7 +103,7 @@ class ProgramBinding : public ProgramBindingBase {
|
|
|
| // Link after binding uniforms
|
| if (!Link(context_provider->ContextGL())) {
|
| - DCHECK(context_provider->IsContextLost());
|
| + DCHECK(IsContextLost(context_provider->ContextGL()));
|
| return;
|
| }
|
|
|
|
|