| Index: content/common/gpu/gpu_channel.cc
|
| diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
|
| index b2a89a6b33d13068be8ea4101fbbf2f6806d9f87..aa6a72ec9a8f651daf7f9b548c8c529d71124921 100644
|
| --- a/content/common/gpu/gpu_channel.cc
|
| +++ b/content/common/gpu/gpu_channel.cc
|
| @@ -159,8 +159,10 @@ GpuChannel::GpuChannel(GpuChannelManager* gpu_channel_manager,
|
| gfx::GLShareGroup* share_group,
|
| gpu::gles2::MailboxManager* mailbox,
|
| int client_id,
|
| - bool software)
|
| + bool software,
|
| + base::WeakPtr<gpu::ShaderCache> shader_cache)
|
| : gpu_channel_manager_(gpu_channel_manager),
|
| + shader_cache_(shader_cache),
|
| unprocessed_messages_(new gpu::RefCountedCounter),
|
| client_id_(client_id),
|
| share_group_(share_group ? share_group : new gfx::GLShareGroup),
|
| @@ -342,7 +344,8 @@ void GpuChannel::CreateViewCommandBuffer(
|
| *route_id,
|
| surface_id,
|
| watchdog_,
|
| - software_));
|
| + software_,
|
| + shader_cache_));
|
| if (preempt_by_counter_.get())
|
| stub->SetPreemptByCounter(preempt_by_counter_);
|
| router_.AddRoute(*route_id, stub.get());
|
| @@ -510,7 +513,8 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
|
| init_params.gpu_preference,
|
| route_id,
|
| 0, watchdog_,
|
| - software_));
|
| + software_,
|
| + shader_cache_));
|
| if (preempt_by_counter_.get())
|
| stub->SetPreemptByCounter(preempt_by_counter_);
|
| router_.AddRoute(route_id, stub.get());
|
|
|