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 <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "gpu/command_buffer/service/gl_utils.h" | 14 #include "gpu/command_buffer/service/gl_utils.h" |
15 #include "gpu/command_buffer/service/sampler_manager.h" | 15 #include "gpu/command_buffer/service/sampler_manager.h" |
16 #include "gpu/command_buffer/service/shader_manager.h" | 16 #include "gpu/command_buffer/service/shader_manager.h" |
17 #include "gpu/command_buffer/service/texture_manager.h" | 17 #include "gpu/command_buffer/service/texture_manager.h" |
18 #include "gpu/command_buffer/service/vertex_array_manager.h" | 18 #include "gpu/command_buffer/service/vertex_array_manager.h" |
19 #include "gpu/command_buffer/service/vertex_attrib_manager.h" | 19 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
20 #include "gpu/gpu_export.h" | 20 #include "gpu/gpu_export.h" |
21 | 21 |
22 namespace gpu { | 22 namespace gpu { |
23 namespace gles2 { | 23 namespace gles2 { |
24 | 24 |
25 class Buffer; | 25 class Buffer; |
26 class ErrorState; | 26 class ErrorState; |
27 class ErrorStateClient; | 27 class ErrorStateClient; |
28 class FeatureInfo; | 28 class FeatureInfo; |
29 class Framebuffer; | |
30 class IndexedBufferBindingHost; | 29 class IndexedBufferBindingHost; |
31 class Logger; | 30 class Logger; |
32 class Program; | 31 class Program; |
33 class Renderbuffer; | 32 class Renderbuffer; |
34 class TransformFeedback; | 33 class TransformFeedback; |
35 | 34 |
36 // State associated with each texture unit. | 35 // State associated with each texture unit. |
37 struct GPU_EXPORT TextureUnit { | 36 struct GPU_EXPORT TextureUnit { |
38 TextureUnit(); | 37 TextureUnit(); |
39 TextureUnit(const TextureUnit& other); | 38 TextureUnit(const TextureUnit& other); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 GLfloat line_width_max_ = 1.0f; | 365 GLfloat line_width_max_ = 1.0f; |
367 | 366 |
368 FeatureInfo* feature_info_; | 367 FeatureInfo* feature_info_; |
369 std::unique_ptr<ErrorState> error_state_; | 368 std::unique_ptr<ErrorState> error_state_; |
370 }; | 369 }; |
371 | 370 |
372 } // namespace gles2 | 371 } // namespace gles2 |
373 } // namespace gpu | 372 } // namespace gpu |
374 | 373 |
375 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 374 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
OLD | NEW |