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

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

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: memory limit + lru 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_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 63d8a3476cf784d4b569437b15f65eac6a68a3a9..315c03ed1511bf6b5b9c9a98129b552075f2bcbb 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -49,7 +49,8 @@ GpuCommandBufferStub::GpuCommandBufferStub(
int32 route_id,
int32 surface_id,
GpuWatchdog* watchdog,
- bool software)
+ bool software,
+ gpu::gles2::ProgramCache* program_cache)
: channel_(channel),
handle_(handle),
initial_size_(size),
@@ -68,7 +69,9 @@ GpuCommandBufferStub::GpuCommandBufferStub(
if (share_group) {
context_group_ = share_group->context_group_;
} else {
- context_group_ = new gpu::gles2::ContextGroup(mailbox_manager, true);
+ context_group_ = new gpu::gles2::ContextGroup(mailbox_manager,
+ true,
+ program_cache);
}
if (surface_id != 0)
surface_state_.reset(new GpuCommandBufferStubBase::SurfaceState(

Powered by Google App Engine
This is Rietveld 408576698