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

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

Issue 1684343002: Upgrade TexSubImage3D and TexStorage3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 TextureRef** texture_ref); 903 TextureRef** texture_ref);
904 904
905 void ValidateAndDoTexImage( 905 void ValidateAndDoTexImage(
906 DecoderTextureState* texture_state, 906 DecoderTextureState* texture_state,
907 ContextState* state, 907 ContextState* state,
908 DecoderFramebufferState* framebuffer_state, 908 DecoderFramebufferState* framebuffer_state,
909 const char* function_name, 909 const char* function_name,
910 const DoTexImageArguments& args); 910 const DoTexImageArguments& args);
911 911
912 struct DoTexSubImageArguments { 912 struct DoTexSubImageArguments {
913 enum TexSubImageCommandType {
914 kTexSubImage2D,
915 kTexSubImage3D,
916 };
917
913 GLenum target; 918 GLenum target;
914 GLint level; 919 GLint level;
915 GLint xoffset; 920 GLint xoffset;
916 GLint yoffset; 921 GLint yoffset;
922 GLint zoffset;
917 GLsizei width; 923 GLsizei width;
918 GLsizei height; 924 GLsizei height;
925 GLsizei depth;
919 GLenum format; 926 GLenum format;
920 GLenum type; 927 GLenum type;
921 const void* pixels; 928 const void* pixels;
922 uint32_t pixels_size; 929 uint32_t pixels_size;
923 // TODO(kkinnunen): currently this is used only for TexSubImage2D. 930 TexSubImageCommandType command_type;
924 }; 931 };
925 932
926 bool ValidateTexSubImage( 933 bool ValidateTexSubImage(
927 ContextState* state, 934 ContextState* state,
928 const char* function_name, 935 const char* function_name,
929 const DoTexSubImageArguments& args, 936 const DoTexSubImageArguments& args,
930 // Pointer to TextureRef filled in if validation successful. 937 // Pointer to TextureRef filled in if validation successful.
931 // Presumes the pointer is valid. 938 // Presumes the pointer is valid.
932 TextureRef** texture_ref); 939 TextureRef** texture_ref);
933 940
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 private: 1063 private:
1057 DecoderTextureState* texture_state_; 1064 DecoderTextureState* texture_state_;
1058 base::TimeTicks begin_time_; 1065 base::TimeTicks begin_time_;
1059 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 1066 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
1060 }; 1067 };
1061 1068
1062 } // namespace gles2 1069 } // namespace gles2
1063 } // namespace gpu 1070 } // namespace gpu
1064 1071
1065 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1072 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698