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

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

Issue 1883273004: Emulate TEXTURE_IMMUTABLE_LEVELS on GL lower than 4.2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 240
241 void SetImmutable(bool immutable) { 241 void SetImmutable(bool immutable) {
242 immutable_ = immutable; 242 immutable_ = immutable;
243 } 243 }
244 244
245 bool IsImmutable() const { 245 bool IsImmutable() const {
246 return immutable_; 246 return immutable_;
247 } 247 }
248 248
249 // Return 0 if it's not immutable.
250 GLint GetImmutableLevels() const;
251
249 // Get the cleared rectangle for a particular level. Returns an empty 252 // Get the cleared rectangle for a particular level. Returns an empty
250 // rectangle if level does not exist. 253 // rectangle if level does not exist.
251 gfx::Rect GetLevelClearedRect(GLenum target, GLint level) const; 254 gfx::Rect GetLevelClearedRect(GLenum target, GLint level) const;
252 255
253 // Whether a particular level/face is cleared. 256 // Whether a particular level/face is cleared.
254 bool IsLevelCleared(GLenum target, GLint level) const; 257 bool IsLevelCleared(GLenum target, GLint level) const;
255 // Whether a particular level/face is partially cleared. 258 // Whether a particular level/face is partially cleared.
256 bool IsLevelPartiallyCleared(GLenum target, GLint level) const; 259 bool IsLevelPartiallyCleared(GLenum target, GLint level) const;
257 260
258 // Whether the texture has been defined 261 // Whether the texture has been defined
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 private: 1141 private:
1139 DecoderTextureState* texture_state_; 1142 DecoderTextureState* texture_state_;
1140 base::TimeTicks begin_time_; 1143 base::TimeTicks begin_time_;
1141 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 1144 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
1142 }; 1145 };
1143 1146
1144 } // namespace gles2 1147 } // namespace gles2
1145 } // namespace gpu 1148 } // namespace gpu
1146 1149
1147 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1150 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698