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

Unified Diff: gpu/command_buffer/service/shader_manager.cc

Issue 10534173: GPU Program Caching (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: solid in-memory implementation 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: gpu/command_buffer/service/shader_manager.cc
diff --git a/gpu/command_buffer/service/shader_manager.cc b/gpu/command_buffer/service/shader_manager.cc
index 0d30f521a7a6ea6a226e057fe732ffe373723355..671801ce95d28ccc8f2a4575809b4e5d3a0e9b48 100644
--- a/gpu/command_buffer/service/shader_manager.cc
+++ b/gpu/command_buffer/service/shader_manager.cc
@@ -13,7 +13,8 @@ ShaderManager::ShaderInfo::ShaderInfo(GLuint service_id, GLenum shader_type)
: use_count_(0),
service_id_(service_id),
shader_type_(shader_type),
- valid_(false) {
+ valid_(false),
+ pending_cache_miss_compilation_(false) {
}
ShaderManager::ShaderInfo::~ShaderInfo() {
@@ -46,6 +47,11 @@ void ShaderManager::ShaderInfo::SetStatus(
}
}
+void ShaderManager::ShaderInfo::SetPendingCompilation(
+ bool pending_cache_miss_compilation) {
+ pending_cache_miss_compilation_ = pending_cache_miss_compilation;
+}
+
const ShaderManager::ShaderInfo::VariableInfo*
ShaderManager::ShaderInfo::GetAttribInfo(
const std::string& name) const {

Powered by Google App Engine
This is Rietveld 408576698