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

Unified Diff: gpu/command_buffer/tests/gl_manager.h

Issue 1143393007: Teach GPU command buffer whether a context is webgl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/tests/gl_manager.h
diff --git a/gpu/command_buffer/tests/gl_manager.h b/gpu/command_buffer/tests/gl_manager.h
index c163ac01cc9f94a5bd835610014861c2e05ce516..f86cc0d39dcac6e663d046a93a2383e96a2ff1b5 100644
--- a/gpu/command_buffer/tests/gl_manager.h
+++ b/gpu/command_buffer/tests/gl_manager.h
@@ -61,6 +61,10 @@ class GLManager : private GpuControl {
bool lose_context_when_out_of_memory;
// Whether or not it's ok to lose the context.
bool context_lost_allowed;
+ // 0 indicates not WebGL context - default.
+ // 1 indicates WebGL 1 context.
+ // 2 indicates WebGL 2 context.
+ unsigned webgl_version;
};
GLManager();
~GLManager() override;

Powered by Google App Engine
This is Rietveld 408576698