| Index: cc/output/program_binding.cc
|
| diff --git a/cc/output/program_binding.cc b/cc/output/program_binding.cc
|
| index 7809e1085c7b11cd5e903e3dd911145eacacf7a1..c05447c7d65037c762a8bd590af50919be6e0910 100644
|
| --- a/cc/output/program_binding.cc
|
| +++ b/cc/output/program_binding.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "base/trace_event/trace_event.h"
|
| #include "cc/output/geometry_binding.h"
|
| +#include "gpu/GLES2/gl2extchromium.h"
|
| #include "gpu/command_buffer/client/gles2_interface.h"
|
|
|
| using gpu::gles2::GLES2Interface;
|
| @@ -129,4 +130,8 @@ void ProgramBindingBase::CleanupShaders(GLES2Interface* context) {
|
| }
|
| }
|
|
|
| +bool ProgramBindingBase::IsContextLost(GLES2Interface* context) {
|
| + return context->GetGraphicsResetStatusKHR() != GL_NO_ERROR;
|
| +}
|
| +
|
| } // namespace cc
|
|
|