OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_COMMON_VALUE_STATE_H_ | 5 #ifndef GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_ |
6 #define GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_ | 6 #define GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_ |
7 | 7 |
8 #include "base/containers/hash_tables.h" | 8 #include "base/containers/hash_tables.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
10 #include "gpu/gpu_export.h" | 11 #include "gpu/gpu_export.h" |
11 | 12 |
12 namespace gpu { | 13 namespace gpu { |
13 | 14 |
14 // Used to maintain Valuebuffer state, exposed to browser to | 15 // Used to maintain Valuebuffer state, exposed to browser to |
15 // support passing ValueStates via IPC. | 16 // support passing ValueStates via IPC. |
16 union GPU_EXPORT ValueState { | 17 union GPU_EXPORT ValueState { |
17 float float_value[4]; | 18 float float_value[4]; |
18 int int_value[4]; | 19 int int_value[4]; |
(...skipping 18 matching lines...) Expand all Loading... |
37 typedef base::hash_map<unsigned int, ValueState> Map; | 38 typedef base::hash_map<unsigned int, ValueState> Map; |
38 | 39 |
39 Map state_map_; | 40 Map state_map_; |
40 | 41 |
41 DISALLOW_COPY_AND_ASSIGN(ValueStateMap); | 42 DISALLOW_COPY_AND_ASSIGN(ValueStateMap); |
42 }; | 43 }; |
43 | 44 |
44 } // namespace gpu | 45 } // namespace gpu |
45 | 46 |
46 #endif // GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_ | 47 #endif // GPU_COMMAND_BUFFER_COMMON_VALUE_STATE_H_ |
OLD | NEW |