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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 1095893002: gpu: Fix some context lost marking glitches+leaks and add UMA stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr's comment Created 5 years, 8 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
« no previous file with comments | « gpu/command_buffer/service/gl_context_mock.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.h b/gpu/command_buffer/service/gles2_cmd_decoder.h
index 0cbe0fe586dd6feb095c0268952f1b01c2bd34f1..ac01c95804cc0a2dcd1d30864915d422a91e937a 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.h
@@ -241,13 +241,13 @@ class GPU_EXPORT GLES2Decoder : public base::SupportsWeakPtr<GLES2Decoder>,
// Returns true if the context was lost either by GL_ARB_robustness, forced
// context loss or command buffer parse error.
- virtual bool WasContextLost() = 0;
+ virtual bool WasContextLost() const = 0;
// Returns true if the context was lost specifically by GL_ARB_robustness.
- virtual bool WasContextLostByRobustnessExtension() = 0;
+ virtual bool WasContextLostByRobustnessExtension() const = 0;
// Lose this context.
- virtual void LoseContext(uint32 reset_status) = 0;
+ virtual void MarkContextLost(error::ContextLostReason reason) = 0;
virtual Logger* GetLogger() = 0;
« no previous file with comments | « gpu/command_buffer/service/gl_context_mock.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698