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

Unified Diff: components/mus/gles2/command_buffer_driver.cc

Issue 1338433002: Mandoline: Add WebGL support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gn check issue Created 5 years, 3 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: components/mus/gles2/command_buffer_driver.cc
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc
index 07f9aed894e19d17f06917662b903502c94e9962..97f88bd5df7e5eafb70d5580f81f89798ce2fa5c 100644
--- a/components/mus/gles2/command_buffer_driver.cc
+++ b/components/mus/gles2/command_buffer_driver.cc
@@ -114,10 +114,10 @@ bool CommandBufferDriver::DoInitialize(
gpu::gles2::DisallowedFeatures disallowed_features;
// TODO(piman): attributes.
+ const bool offscreen = true;
std::vector<int32> attrib_vector;
- if (!decoder_->Initialize(surface_, context_, false /* offscreen */,
- gfx::Size(1, 1), disallowed_features,
- attrib_vector))
+ if (!decoder_->Initialize(surface_, context_, offscreen, gfx::Size(1, 1),
+ disallowed_features, attrib_vector))
return false;
command_buffer_->SetPutOffsetChangeCallback(base::Bind(
« no previous file with comments | « components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc ('k') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698