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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.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: content/common/gpu/gpu_command_buffer_stub.cc
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index b26757559392e78ff52656e50b5aafcf1d7b53f1..e06b2f1a680e03b3c35f5036f3d31dbd1ff886c6 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -492,12 +492,14 @@ void GpuCommandBufferStub::OnInitialize(
}
// Initialize the decoder with either the view or pbuffer GLContext.
- if (!decoder_->Initialize(surface_,
- context,
- !surface_id(),
- initial_size_,
- disallowed_features_,
- requested_attribs_)) {
+ if (!decoder_->Initialize(
+ surface_,
+ context,
+ channel_->gpu_channel_manager()->shader_translator_cache(),
+ !surface_id(),
+ initial_size_,
+ disallowed_features_,
+ requested_attribs_)) {
DLOG(ERROR) << "Failed to initialize decoder.";
OnInitializeFailed(reply_message);
return;

Powered by Google App Engine
This is Rietveld 408576698