| 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..c0aedaaaf717e6aad7875f34bce9d87685fdcc3f 100644
|
| --- a/gpu/command_buffer/service/shader_manager.cc
|
| +++ b/gpu/command_buffer/service/shader_manager.cc
|
| @@ -3,6 +3,9 @@
|
| // found in the LICENSE file.
|
|
|
| #include "gpu/command_buffer/service/shader_manager.h"
|
| +
|
| +#include <utility>
|
| +
|
| #include "base/logging.h"
|
| #include "base/string_util.h"
|
|
|
| @@ -13,7 +16,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 +50,11 @@ void ShaderManager::ShaderInfo::SetStatus(
|
| }
|
| }
|
|
|
| +void ShaderManager::ShaderInfo::set_pending_compilation(
|
| + 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 {
|
|
|