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

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

Issue 1133033002: Update GetTexParameter* and TexParameter* for ES3 in GPU command buffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 <algorithm> 8 #include <algorithm>
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 30 matching lines...) Expand all
41 explicit Texture(GLuint service_id); 41 explicit Texture(GLuint service_id);
42 42
43 GLenum min_filter() const { 43 GLenum min_filter() const {
44 return min_filter_; 44 return min_filter_;
45 } 45 }
46 46
47 GLenum mag_filter() const { 47 GLenum mag_filter() const {
48 return mag_filter_; 48 return mag_filter_;
49 } 49 }
50 50
51 GLenum wrap_r() const {
52 return wrap_r_;
53 }
54
51 GLenum wrap_s() const { 55 GLenum wrap_s() const {
52 return wrap_s_; 56 return wrap_s_;
53 } 57 }
54 58
55 GLenum wrap_t() const { 59 GLenum wrap_t() const {
56 return wrap_t_; 60 return wrap_t_;
57 } 61 }
58 62
59 GLenum usage() const { 63 GLenum usage() const {
60 return usage_; 64 return usage_;
61 } 65 }
62 66
63 GLenum pool() const { 67 GLenum pool() const {
64 return pool_; 68 return pool_;
65 } 69 }
66 70
71 GLenum compare_func() const {
72 return compare_func_;
73 }
74
75 GLenum compare_mode() const {
76 return compare_mode_;
77 }
78
79 GLfloat max_lod() const {
80 return max_lod_;
81 }
82
83 GLfloat min_lod() const {
84 return min_lod_;
85 }
86
87 GLint base_level() const {
88 return base_level_;
89 }
90
91 GLint max_level() const {
92 return max_level_;
93 }
94
67 int num_uncleared_mips() const { 95 int num_uncleared_mips() const {
68 return num_uncleared_mips_; 96 return num_uncleared_mips_;
69 } 97 }
70 98
71 uint32 estimated_size() const { 99 uint32 estimated_size() const {
72 return estimated_size_; 100 return estimated_size_;
73 } 101 }
74 102
75 bool CanRenderTo() const { 103 bool CanRenderTo() const {
76 return target_ != GL_TEXTURE_EXTERNAL_OES; 104 return target_ != GL_TEXTURE_EXTERNAL_OES;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 411
384 int num_uncleared_mips_; 412 int num_uncleared_mips_;
385 int num_npot_faces_; 413 int num_npot_faces_;
386 414
387 // The target. 0 if unset, otherwise GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP. 415 // The target. 0 if unset, otherwise GL_TEXTURE_2D or GL_TEXTURE_CUBE_MAP.
388 GLenum target_; 416 GLenum target_;
389 417
390 // Texture parameters. 418 // Texture parameters.
391 GLenum min_filter_; 419 GLenum min_filter_;
392 GLenum mag_filter_; 420 GLenum mag_filter_;
421 GLenum wrap_r_;
393 GLenum wrap_s_; 422 GLenum wrap_s_;
394 GLenum wrap_t_; 423 GLenum wrap_t_;
395 GLenum usage_; 424 GLenum usage_;
396 GLenum pool_; 425 GLenum pool_;
426 GLenum compare_func_;
427 GLenum compare_mode_;
428 GLfloat max_lod_;
429 GLfloat min_lod_;
430 GLint base_level_;
431 GLint max_level_;
397 432
398 // The maximum level that has been set. 433 // The maximum level that has been set.
399 GLint max_level_set_; 434 GLint max_level_set_;
400 435
401 // Whether or not this texture is "texture complete" 436 // Whether or not this texture is "texture complete"
402 bool texture_complete_; 437 bool texture_complete_;
403 438
404 // Whether mip levels have changed and should be reverified. 439 // Whether mip levels have changed and should be reverified.
405 bool texture_mips_dirty_; 440 bool texture_mips_dirty_;
406 bool texture_mips_complete_; 441 bool texture_mips_complete_;
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 private: 921 private:
887 DecoderTextureState* texture_state_; 922 DecoderTextureState* texture_state_;
888 base::TimeTicks begin_time_; 923 base::TimeTicks begin_time_;
889 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 924 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
890 }; 925 };
891 926
892 } // namespace gles2 927 } // namespace gles2
893 } // namespace gpu 928 } // namespace gpu
894 929
895 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 930 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698