| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 return estimated_size() > 0; | 158 return estimated_size() > 0; |
| 159 } | 159 } |
| 160 | 160 |
| 161 // Initialize TEXTURE_MAX_ANISOTROPY to 1 if we haven't done so yet. | 161 // Initialize TEXTURE_MAX_ANISOTROPY to 1 if we haven't done so yet. |
| 162 void InitTextureMaxAnisotropyIfNeeded(GLenum target); | 162 void InitTextureMaxAnisotropyIfNeeded(GLenum target); |
| 163 | 163 |
| 164 void OnWillModifyPixels(); | 164 void OnWillModifyPixels(); |
| 165 void OnDidModifyPixels(); | 165 void OnDidModifyPixels(); |
| 166 | 166 |
| 167 private: | 167 private: |
| 168 friend class MailboxManager; | 168 friend class MailboxManagerImpl; |
| 169 friend class MailboxManagerSync; |
| 169 friend class MailboxManagerTest; | 170 friend class MailboxManagerTest; |
| 170 friend class TextureDefinition; | 171 friend class TextureDefinition; |
| 171 friend class TextureManager; | 172 friend class TextureManager; |
| 172 friend class TextureRef; | 173 friend class TextureRef; |
| 173 friend class TextureTestHelper; | 174 friend class TextureTestHelper; |
| 174 | 175 |
| 175 ~Texture(); | 176 ~Texture(); |
| 176 void AddTextureRef(TextureRef* ref); | 177 void AddTextureRef(TextureRef* ref); |
| 177 void RemoveTextureRef(TextureRef* ref, bool have_context); | 178 void RemoveTextureRef(TextureRef* ref, bool have_context); |
| 178 MemoryTypeTracker* GetMemTracker(); | 179 MemoryTypeTracker* GetMemTracker(); |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 private: | 869 private: |
| 869 DecoderTextureState* texture_state_; | 870 DecoderTextureState* texture_state_; |
| 870 base::TimeTicks begin_time_; | 871 base::TimeTicks begin_time_; |
| 871 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 872 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
| 872 }; | 873 }; |
| 873 | 874 |
| 874 } // namespace gles2 | 875 } // namespace gles2 |
| 875 } // namespace gpu | 876 } // namespace gpu |
| 876 | 877 |
| 877 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 878 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
| OLD | NEW |