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_TEXTURE_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 bool IsDefined() const { | 194 bool IsDefined() const { |
195 return estimated_size() > 0; | 195 return estimated_size() > 0; |
196 } | 196 } |
197 | 197 |
198 // Initialize TEXTURE_MAX_ANISOTROPY to 1 if we haven't done so yet. | 198 // Initialize TEXTURE_MAX_ANISOTROPY to 1 if we haven't done so yet. |
199 void InitTextureMaxAnisotropyIfNeeded(GLenum target); | 199 void InitTextureMaxAnisotropyIfNeeded(GLenum target); |
200 | 200 |
201 void OnWillModifyPixels(); | 201 void OnWillModifyPixels(); |
202 void OnDidModifyPixels(); | 202 void OnDidModifyPixels(); |
203 | 203 |
| 204 void DumpLevelMemory(base::trace_event::ProcessMemoryDump* pmd, |
| 205 uint64_t client_tracing_id, |
| 206 const std::string& dump_name) const; |
| 207 |
204 private: | 208 private: |
205 friend class MailboxManagerImpl; | 209 friend class MailboxManagerImpl; |
206 friend class MailboxManagerSync; | 210 friend class MailboxManagerSync; |
207 friend class MailboxManagerTest; | 211 friend class MailboxManagerTest; |
208 friend class TextureDefinition; | 212 friend class TextureDefinition; |
209 friend class TextureManager; | 213 friend class TextureManager; |
210 friend class TextureRef; | 214 friend class TextureRef; |
211 friend class TextureTestHelper; | 215 friend class TextureTestHelper; |
212 | 216 |
213 ~Texture(); | 217 ~Texture(); |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 private: | 964 private: |
961 DecoderTextureState* texture_state_; | 965 DecoderTextureState* texture_state_; |
962 base::TimeTicks begin_time_; | 966 base::TimeTicks begin_time_; |
963 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 967 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
964 }; | 968 }; |
965 | 969 |
966 } // namespace gles2 | 970 } // namespace gles2 |
967 } // namespace gpu | 971 } // namespace gpu |
968 | 972 |
969 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 973 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
OLD | NEW |