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

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

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.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index d527203d3a6d7d036344d9515ada4e7f9af35163..fa4a312e469113fc1210cb1f568e907f6e22500c 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -189,7 +189,8 @@ GLManager::Options::Options()
virtual_manager(NULL),
bind_generates_resource(false),
lose_context_when_out_of_memory(false),
- context_lost_allowed(false) {
+ context_lost_allowed(false),
+ webgl_version(0) {
}
GLManager::GLManager() : context_lost_allowed_(false) {
@@ -277,6 +278,7 @@ void GLManager::InitializeWithCommandLine(const GLManager::Options& options,
attrib_helper.alpha_size = 8;
attrib_helper.depth_size = 16;
attrib_helper.stencil_size = 8;
+ attrib_helper.webgl_version = options.webgl_version;
attrib_helper.Serialize(&attribs);
DCHECK(!command_line || !context_group);

Powered by Google App Engine
This is Rietveld 408576698