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

Side by Side Diff: gpu/command_buffer/service/texture_manager.h

Issue 681713002: Update from chromium https://crrev.com/301315 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698