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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch Created 8 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: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 51cd9d75e33a065c9e58e8b6bba9e808b97fb555..99a64ace798d89e4de1242ba099b4eda6a346320 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -150,8 +150,10 @@ GpuChannel::GpuChannel(GpuChannelManager* gpu_channel_manager,
gfx::GLShareGroup* share_group,
gpu::gles2::MailboxManager* mailbox,
int client_id,
- bool software)
+ bool software,
+ gpu::gles2::ProgramCache* program_cache)
: gpu_channel_manager_(gpu_channel_manager),
+ program_cache_(program_cache),
unprocessed_messages_(new gpu::RefCountedCounter),
client_id_(client_id),
share_group_(share_group ? share_group : new gfx::GLShareGroup),
@@ -332,7 +334,8 @@ void GpuChannel::CreateViewCommandBuffer(
*route_id,
surface_id,
watchdog_,
- software_));
+ software_,
+ program_cache_));
if (preempt_by_counter_.get())
stub->SetPreemptByCounter(preempt_by_counter_);
router_.AddRoute(*route_id, stub.get());
@@ -500,7 +503,8 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
init_params.gpu_preference,
route_id,
0, watchdog_,
- software_));
+ software_,
+ program_cache_));
if (preempt_by_counter_.get())
stub->SetPreemptByCounter(preempt_by_counter_);
router_.AddRoute(route_id, stub.get());

Powered by Google App Engine
This is Rietveld 408576698