OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 definitions for resource flags, enums, and helper | 5 // This file contains definitions for resource flags, enums, and helper |
6 // functions. | 6 // functions. |
7 | 7 |
8 #ifndef GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ | 8 #ifndef GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
9 #define GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ | 9 #define GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
10 | 10 |
11 #include <algorithm> | 11 #include <algorithm> |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/scoped_ptr.h" | |
14 #include "gpu/command_buffer/common/types.h" | 13 #include "gpu/command_buffer/common/types.h" |
15 #include "gpu/command_buffer/common/logging.h" | 14 #include "gpu/command_buffer/common/logging.h" |
16 | 15 |
17 namespace gpu { | 16 namespace gpu { |
18 | 17 |
19 // A resource ID, key to the resource maps. | 18 // A resource ID, key to the resource maps. |
20 typedef uint32 ResourceId; | 19 typedef uint32 ResourceId; |
21 // Invalid resource ID. | 20 // Invalid resource ID. |
22 static const ResourceId kInvalidResource = 0xffffffffU; | 21 static const ResourceId kInvalidResource = 0xffffffffU; |
23 | 22 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 kNone, | 191 kNone, |
193 kPoint, | 192 kPoint, |
194 kLinear, | 193 kLinear, |
195 kNumFilteringMode | 194 kNumFilteringMode |
196 }; | 195 }; |
197 } // namespace sampler | 196 } // namespace sampler |
198 | 197 |
199 } // namespace gpu | 198 } // namespace gpu |
200 | 199 |
201 #endif // GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ | 200 #endif // GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
OLD | NEW |