| 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/logging.h" |
| 13 #include "gpu/command_buffer/common/types.h" | 14 #include "gpu/command_buffer/common/types.h" |
| 14 #include "gpu/command_buffer/common/logging.h" | |
| 15 | 15 |
| 16 namespace gpu { | 16 namespace gpu { |
| 17 | 17 |
| 18 // A resource ID, key to the resource maps. | 18 // A resource ID, key to the resource maps. |
| 19 typedef uint32 ResourceId; | 19 typedef uint32 ResourceId; |
| 20 // Invalid resource ID. | 20 // Invalid resource ID. |
| 21 static const ResourceId kInvalidResource = 0xffffffffU; | 21 static const ResourceId kInvalidResource = 0xffffffffU; |
| 22 | 22 |
| 23 namespace vertex_buffer { | 23 namespace vertex_buffer { |
| 24 // Vertex buffer flags. | 24 // Vertex buffer flags. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 kNone, | 191 kNone, |
| 192 kPoint, | 192 kPoint, |
| 193 kLinear, | 193 kLinear, |
| 194 kNumFilteringMode | 194 kNumFilteringMode |
| 195 }; | 195 }; |
| 196 } // namespace sampler | 196 } // namespace sampler |
| 197 | 197 |
| 198 } // namespace gpu | 198 } // namespace gpu |
| 199 | 199 |
| 200 #endif // GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ | 200 #endif // GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
| OLD | NEW |