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

Unified Diff: mojo/services/gles2/command_buffer_impl.cc

Issue 217813004: Make ShaderTranslatorCache thread safe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: protect ShFinalize Created 6 years, 9 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: mojo/services/gles2/command_buffer_impl.cc
diff --git a/mojo/services/gles2/command_buffer_impl.cc b/mojo/services/gles2/command_buffer_impl.cc
index 1e8a4f6e1d1132efeff343cbdd5fcb5aa32b7078..a27306ca3a3cfbbe2cb6aa39bd442ce2378e2208 100644
--- a/mojo/services/gles2/command_buffer_impl.cc
+++ b/mojo/services/gles2/command_buffer_impl.cc
@@ -96,6 +96,7 @@ bool CommandBufferImpl::DoInitialize(const ShmHandle& shared_state) {
std::vector<int32> attrib_vector;
if (!decoder_->Initialize(surface,
context,
+ new gpu::gles2::ShaderTranslatorCache,
no sievers 2014/04/02 18:30:19 We don't actually have to create one per decoder,
piman 2014/04/02 21:58:33 Currently, mojo support is still in its infancy. W
false /* offscreen */,
size_,
disallowed_features,

Powered by Google App Engine
This is Rietveld 408576698