| OLD | NEW |
| 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 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 friend class Texture; | 1045 friend class Texture; |
| 1046 friend class TextureRef; | 1046 friend class TextureRef; |
| 1047 | 1047 |
| 1048 // Helper for Initialize(). | 1048 // Helper for Initialize(). |
| 1049 scoped_refptr<TextureRef> CreateDefaultAndBlackTextures( | 1049 scoped_refptr<TextureRef> CreateDefaultAndBlackTextures( |
| 1050 GLenum target, | 1050 GLenum target, |
| 1051 GLuint* black_texture); | 1051 GLuint* black_texture); |
| 1052 | 1052 |
| 1053 void DoTexImage( | 1053 void DoTexImage( |
| 1054 DecoderTextureState* texture_state, | 1054 DecoderTextureState* texture_state, |
| 1055 ErrorState* error_state, | 1055 ContextState* state, |
| 1056 DecoderFramebufferState* framebuffer_state, | 1056 DecoderFramebufferState* framebuffer_state, |
| 1057 const char* function_name, | 1057 const char* function_name, |
| 1058 TextureRef* texture_ref, | 1058 TextureRef* texture_ref, |
| 1059 const DoTexImageArguments& args); | 1059 const DoTexImageArguments& args); |
| 1060 | 1060 |
| 1061 void StartTracking(TextureRef* texture); | 1061 void StartTracking(TextureRef* texture); |
| 1062 void StopTracking(TextureRef* texture); | 1062 void StopTracking(TextureRef* texture); |
| 1063 | 1063 |
| 1064 void UpdateSafeToRenderFrom(int delta); | 1064 void UpdateSafeToRenderFrom(int delta); |
| 1065 void UpdateUnclearedMips(int delta); | 1065 void UpdateUnclearedMips(int delta); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 private: | 1128 private: |
| 1129 DecoderTextureState* texture_state_; | 1129 DecoderTextureState* texture_state_; |
| 1130 base::TimeTicks begin_time_; | 1130 base::TimeTicks begin_time_; |
| 1131 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); | 1131 DISALLOW_COPY_AND_ASSIGN(ScopedTextureUploadTimer); |
| 1132 }; | 1132 }; |
| 1133 | 1133 |
| 1134 } // namespace gles2 | 1134 } // namespace gles2 |
| 1135 } // namespace gpu | 1135 } // namespace gpu |
| 1136 | 1136 |
| 1137 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ | 1137 #endif // GPU_COMMAND_BUFFER_SERVICE_TEXTURE_MANAGER_H_ |
| OLD | NEW |