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

Unified Diff: gpu/command_buffer/client/context_support.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: forreal Created 5 years, 7 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/context_support.h
diff --git a/gpu/command_buffer/client/context_support.h b/gpu/command_buffer/client/context_support.h
index 6c5b23f0d1e2a322f24ea96b267df18770eb91e0..fe19547cf393c1c26fbd8d90ca90eabe1f8400b9 100644
--- a/gpu/command_buffer/client/context_support.h
+++ b/gpu/command_buffer/client/context_support.h
@@ -40,6 +40,8 @@ class ContextSupport {
virtual uint32 InsertFutureSyncPointCHROMIUM() = 0;
virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0;
+ virtual bool IsContextLost() = 0;
+
protected:
ContextSupport() {}
virtual ~ContextSupport() {}

Powered by Google App Engine
This is Rietveld 408576698