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

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

Issue 180723023: gpu: Mailbox emulation with EGLImage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops Created 6 years, 9 months 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 | Annotate | Revision Log
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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 152 }
153 153
154 // Whether a particular level/face is cleared. 154 // Whether a particular level/face is cleared.
155 bool IsLevelCleared(GLenum target, GLint level) const; 155 bool IsLevelCleared(GLenum target, GLint level) const;
156 156
157 // Whether the texture has been defined 157 // Whether the texture has been defined
158 bool IsDefined() const { 158 bool IsDefined() const {
159 return estimated_size() > 0; 159 return estimated_size() > 0;
160 } 160 }
161 161
162 void OnWillModifyPixels();
163 void OnDidModifyPixels();
164
162 private: 165 private:
163 friend class MailboxManager; 166 friend class MailboxManager;
164 friend class MailboxManagerTest; 167 friend class MailboxManagerTest;
168 friend class TextureDefinition;
165 friend class TextureManager; 169 friend class TextureManager;
166 friend class TextureRef; 170 friend class TextureRef;
167 friend class TextureTestHelper; 171 friend class TextureTestHelper;
168 172
169 ~Texture(); 173 ~Texture();
170 void AddTextureRef(TextureRef* ref); 174 void AddTextureRef(TextureRef* ref);
171 void RemoveTextureRef(TextureRef* ref, bool have_context); 175 void RemoveTextureRef(TextureRef* ref, bool have_context);
172 MemoryTypeTracker* GetMemTracker(); 176 MemoryTypeTracker* GetMemTracker();
173 177
174 // Condition on which this texture is renderable. Can be ONLY_IF_NPOT if it 178 // Condition on which this texture is renderable. Can be ONLY_IF_NPOT if it
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 private: 796 private:
793 DecoderTextureState* texture_state_; 797 DecoderTextureState* texture_state_;
794 base::TimeTicks begin_time_; 798 base::TimeTicks begin_time_;
795 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 799 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
796 }; 800 };
797 801
798 } // namespace gles2 802 } // namespace gles2
799 } // namespace gpu 803 } // namespace gpu
800 804
801 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 805 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698