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 <vector> | 11 #include <vector> |
| 12 |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "gpu/command_buffer/service/gl_utils.h" | 14 #include "gpu/command_buffer/service/gl_utils.h" |
14 #include "gpu/command_buffer/service/sampler_manager.h" | 15 #include "gpu/command_buffer/service/sampler_manager.h" |
15 #include "gpu/command_buffer/service/texture_manager.h" | 16 #include "gpu/command_buffer/service/texture_manager.h" |
16 #include "gpu/command_buffer/service/valuebuffer_manager.h" | 17 #include "gpu/command_buffer/service/valuebuffer_manager.h" |
| 18 #include "gpu/command_buffer/service/vertex_array_manager.h" |
17 #include "gpu/command_buffer/service/vertex_attrib_manager.h" | 19 #include "gpu/command_buffer/service/vertex_attrib_manager.h" |
18 #include "gpu/command_buffer/service/vertex_array_manager.h" | |
19 #include "gpu/gpu_export.h" | 20 #include "gpu/gpu_export.h" |
20 | 21 |
21 namespace gpu { | 22 namespace gpu { |
22 namespace gles2 { | 23 namespace gles2 { |
23 | 24 |
24 class Buffer; | 25 class Buffer; |
25 class ErrorState; | 26 class ErrorState; |
26 class ErrorStateClient; | 27 class ErrorStateClient; |
27 class FeatureInfo; | 28 class FeatureInfo; |
28 class Framebuffer; | 29 class Framebuffer; |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters | 302 // If a buffer object is bound to PIXEL_PACK_BUFFER, set all pack parameters |
302 // user values; otherwise, set them to 0. | 303 // user values; otherwise, set them to 0. |
303 void UpdatePackParameters() const; | 304 void UpdatePackParameters() const; |
304 // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack | 305 // If a buffer object is bound to PIXEL_UNPACK_BUFFER, set all unpack |
305 // parameters user values; otherwise, set them to 0. | 306 // parameters user values; otherwise, set them to 0. |
306 void UpdateUnpackParameters() const; | 307 void UpdateUnpackParameters() const; |
307 | 308 |
308 void InitStateManual(const ContextState* prev_state) const; | 309 void InitStateManual(const ContextState* prev_state) const; |
309 | 310 |
310 FeatureInfo* feature_info_; | 311 FeatureInfo* feature_info_; |
311 scoped_ptr<ErrorState> error_state_; | 312 std::unique_ptr<ErrorState> error_state_; |
312 }; | 313 }; |
313 | 314 |
314 } // namespace gles2 | 315 } // namespace gles2 |
315 } // namespace gpu | 316 } // namespace gpu |
316 | 317 |
317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ | 318 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_STATE_H_ |
318 | 319 |
OLD | NEW |