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 // This file contains the ContextState class. | 5 // This file contains the ContextState class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 15 matching lines...) Expand all Loading... |
26 class ErrorStateClient; | 26 class ErrorStateClient; |
27 class FeatureInfo; | 27 class FeatureInfo; |
28 class Framebuffer; | 28 class Framebuffer; |
29 class Logger; | 29 class Logger; |
30 class Program; | 30 class Program; |
31 class Renderbuffer; | 31 class Renderbuffer; |
32 | 32 |
33 // State associated with each texture unit. | 33 // State associated with each texture unit. |
34 struct GPU_EXPORT TextureUnit { | 34 struct GPU_EXPORT TextureUnit { |
35 TextureUnit(); | 35 TextureUnit(); |
| 36 TextureUnit(const TextureUnit& other); |
36 ~TextureUnit(); | 37 ~TextureUnit(); |
37 | 38 |
38 // The last target that was bound to this texture unit. | 39 // The last target that was bound to this texture unit. |
39 GLenum bind_target; | 40 GLenum bind_target; |
40 | 41 |
41 // texture currently bound to this unit's GL_TEXTURE_2D with glBindTexture | 42 // texture currently bound to this unit's GL_TEXTURE_2D with glBindTexture |
42 scoped_refptr<TextureRef> bound_texture_2d; | 43 scoped_refptr<TextureRef> bound_texture_2d; |
43 | 44 |
44 // texture currently bound to this unit's GL_TEXTURE_CUBE_MAP with | 45 // texture currently bound to this unit's GL_TEXTURE_CUBE_MAP with |
45 // glBindTexture | 46 // glBindTexture |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 | 309 |
309 FeatureInfo* feature_info_; | 310 FeatureInfo* feature_info_; |
310 scoped_ptr<ErrorState> error_state_; | 311 scoped_ptr<ErrorState> error_state_; |
311 }; | 312 }; |
312 | 313 |
313 } // namespace gles2 | 314 } // namespace gles2 |
314 } // namespace gpu | 315 } // namespace gpu |
315 | 316 |
316 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
317 | 318 |
OLD | NEW |