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

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

Issue 10797055: gpu in-memory program cache implementation with a memory limit + lru eviction. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: simplified binary loading logic Created 8 years, 5 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 6a281e4169071af8cb204994d542fb7c4e9c14b2..12cda4b48269b31041b9e56a18f7c705223ab64c 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -376,6 +376,11 @@ void GpuCommandBufferStub::OnInitialize(
return;
}
+ if (!context_group_->has_program_cache()) {
+ context_group_->set_program_cache(
+ channel_->gpu_channel_manager()->program_cache());
+ }
+
// Initialize the decoder with either the view or pbuffer GLContext.
if (!decoder_->Initialize(surface_,
context_,

Powered by Google App Engine
This is Rietveld 408576698