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

Unified Diff: gpu/command_buffer/client/gpu_control.h

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: better?better! Created 5 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/client/gpu_control.h
diff --git a/gpu/command_buffer/client/gpu_control.h b/gpu/command_buffer/client/gpu_control.h
index 2b303b3b4d58ced50269d00d2598e29c248dcf4d..75bd082a34da478b9247d294c050e2cb8c864fcb 100644
--- a/gpu/command_buffer/client/gpu_control.h
+++ b/gpu/command_buffer/client/gpu_control.h
@@ -85,6 +85,10 @@ class GPU_EXPORT GpuControl {
// may not be supported with all implementations.
virtual void SetLock(base::Lock*) = 0;
+ // Returns true if the channel to the Gpu is lost. When true, all contexts
+ // should be considered as lost.
+ virtual bool IsGpuChannelLost() = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(GpuControl);
};

Powered by Google App Engine
This is Rietveld 408576698