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

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

Issue 1750123002: Upgrade Tex{Sub}Image{2|3}D to handle ES3 unpack parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 friend class Texture; 1014 friend class Texture;
1015 friend class TextureRef; 1015 friend class TextureRef;
1016 1016
1017 // Helper for Initialize(). 1017 // Helper for Initialize().
1018 scoped_refptr<TextureRef> CreateDefaultAndBlackTextures( 1018 scoped_refptr<TextureRef> CreateDefaultAndBlackTextures(
1019 GLenum target, 1019 GLenum target,
1020 GLuint* black_texture); 1020 GLuint* black_texture);
1021 1021
1022 void DoTexImage( 1022 void DoTexImage(
1023 DecoderTextureState* texture_state, 1023 DecoderTextureState* texture_state,
1024 ErrorState* error_state, 1024 ContextState* state,
1025 DecoderFramebufferState* framebuffer_state, 1025 DecoderFramebufferState* framebuffer_state,
1026 const char* function_name, 1026 const char* function_name,
1027 TextureRef* texture_ref, 1027 TextureRef* texture_ref,
1028 const DoTexImageArguments& args); 1028 const DoTexImageArguments& args);
1029 1029
1030 void StartTracking(TextureRef* texture); 1030 void StartTracking(TextureRef* texture);
1031 void StopTracking(TextureRef* texture); 1031 void StopTracking(TextureRef* texture);
1032 1032
1033 void UpdateSafeToRenderFrom(int delta); 1033 void UpdateSafeToRenderFrom(int delta);
1034 void UpdateUnclearedMips(int delta); 1034 void UpdateUnclearedMips(int delta);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 private: 1099 private:
1100 DecoderTextureState* texture_state_; 1100 DecoderTextureState* texture_state_;
1101 base::TimeTicks begin_time_; 1101 base::TimeTicks begin_time_;
1102 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); 1102 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer);
1103 }; 1103 };
1104 1104
1105 } // namespace gles2 1105 } // namespace gles2
1106 } // namespace gpu 1106 } // namespace gpu
1107 1107
1108 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ 1108 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698