| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 32 | 32 |
| 33 // This file contains definitions for resource flags, enums, and helper | 33 // This file contains definitions for resource flags, enums, and helper |
| 34 // functions. | 34 // functions. |
| 35 | 35 |
| 36 #ifndef GPU_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H_ | 36 #ifndef GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
| 37 #define GPU_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H_ | 37 #define GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
| 38 | 38 |
| 39 #include <algorithm> | 39 #include <algorithm> |
| 40 #include "base/basictypes.h" | 40 #include "base/basictypes.h" |
| 41 #include "base/scoped_ptr.h" | 41 #include "base/scoped_ptr.h" |
| 42 #include "gpu/command_buffer/common/types.h" | 42 #include "gpu/command_buffer/common/types.h" |
| 43 #include "gpu/command_buffer/common/logging.h" | 43 #include "gpu/command_buffer/common/logging.h" |
| 44 | 44 |
| 45 namespace command_buffer { | 45 namespace gpu { |
| 46 | 46 |
| 47 // A resource ID, key to the resource maps. | 47 // A resource ID, key to the resource maps. |
| 48 typedef uint32 ResourceId; | 48 typedef uint32 ResourceId; |
| 49 // Invalid resource ID. | 49 // Invalid resource ID. |
| 50 static const ResourceId kInvalidResource = 0xffffffffU; | 50 static const ResourceId kInvalidResource = 0xffffffffU; |
| 51 | 51 |
| 52 namespace vertex_buffer { | 52 namespace vertex_buffer { |
| 53 // Vertex buffer flags. | 53 // Vertex buffer flags. |
| 54 enum Flags { | 54 enum Flags { |
| 55 kNone = 0x00, | 55 kNone = 0x00, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 }; | 217 }; |
| 218 | 218 |
| 219 enum FilteringMode { | 219 enum FilteringMode { |
| 220 kNone, | 220 kNone, |
| 221 kPoint, | 221 kPoint, |
| 222 kLinear, | 222 kLinear, |
| 223 kNumFilteringMode | 223 kNumFilteringMode |
| 224 }; | 224 }; |
| 225 } // namespace sampler | 225 } // namespace sampler |
| 226 | 226 |
| 227 } // namespace command_buffer | 227 } // namespace gpu |
| 228 | 228 |
| 229 #endif // GPU_COMMAND_BUFFER_COMMON_CROSS_RESOURCE_H_ | 229 #endif // GPU_COMMAND_BUFFER_COMMON_RESOURCE_H_ |
| OLD | NEW |