OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MEMORY_PROGRAM_CACHE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MEMORY_PROGRAM_CACHE_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_MEMORY_PROGRAM_CACHE_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_MEMORY_PROGRAM_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 GLenum _format, | 49 GLenum _format, |
50 const char* _data, | 50 const char* _data, |
51 const char* _shader_0_hash, | 51 const char* _shader_0_hash, |
52 const ShaderTranslator::VariableMap& _attrib_map_0, | 52 const ShaderTranslator::VariableMap& _attrib_map_0, |
53 const ShaderTranslator::VariableMap& _uniform_map_0, | 53 const ShaderTranslator::VariableMap& _uniform_map_0, |
54 const char* _shader_1_hash, | 54 const char* _shader_1_hash, |
55 const ShaderTranslator::VariableMap& _attrib_map_1, | 55 const ShaderTranslator::VariableMap& _attrib_map_1, |
56 const ShaderTranslator::VariableMap& _uniform_map_1); | 56 const ShaderTranslator::VariableMap& _uniform_map_1); |
57 const GLsizei length; | 57 const GLsizei length; |
58 const GLenum format; | 58 const GLenum format; |
59 const scoped_array<const char> data; | 59 const scoped_ptr<const char[]> data; |
60 const std::string shader_0_hash; | 60 const std::string shader_0_hash; |
61 const ShaderTranslator::VariableMap attrib_map_0; | 61 const ShaderTranslator::VariableMap attrib_map_0; |
62 const ShaderTranslator::VariableMap uniform_map_0; | 62 const ShaderTranslator::VariableMap uniform_map_0; |
63 const std::string shader_1_hash; | 63 const std::string shader_1_hash; |
64 const ShaderTranslator::VariableMap attrib_map_1; | 64 const ShaderTranslator::VariableMap attrib_map_1; |
65 const ShaderTranslator::VariableMap uniform_map_1; | 65 const ShaderTranslator::VariableMap uniform_map_1; |
66 | 66 |
67 private: | 67 private: |
68 friend class base::RefCounted<ProgramCacheValue>; | 68 friend class base::RefCounted<ProgramCacheValue>; |
69 | 69 |
(...skipping 10 matching lines...) Expand all Loading... |
80 StoreMap store_; | 80 StoreMap store_; |
81 ProgramCacheLruHelper eviction_helper_; | 81 ProgramCacheLruHelper eviction_helper_; |
82 | 82 |
83 DISALLOW_COPY_AND_ASSIGN(MemoryProgramCache); | 83 DISALLOW_COPY_AND_ASSIGN(MemoryProgramCache); |
84 }; | 84 }; |
85 | 85 |
86 } // namespace gles2 | 86 } // namespace gles2 |
87 } // namespace gpu | 87 } // namespace gpu |
88 | 88 |
89 #endif // GPU_COMMAND_BUFFER_SERVICE_MEMORY_PROGRAM_CACHE_H_ | 89 #endif // GPU_COMMAND_BUFFER_SERVICE_MEMORY_PROGRAM_CACHE_H_ |
OLD | NEW |