Chromium Code Reviews| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 146 : data_type_(data_type) { | 146 : data_type_(data_type) { |
| 147 } | 147 } |
| 148 | 148 |
| 149 // Gets the data type of this parameter. | 149 // Gets the data type of this parameter. |
| 150 effect_param::DataType data_type() const { return data_type_; } | 150 effect_param::DataType data_type() const { return data_type_; } |
| 151 private: | 151 private: |
| 152 effect_param::DataType data_type_; | 152 effect_param::DataType data_type_; |
| 153 DISALLOW_COPY_AND_ASSIGN(EffectParam); | 153 DISALLOW_COPY_AND_ASSIGN(EffectParam); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 class EffectStream: public Resource { | |
|
Antoine Labour
2009/07/06 23:48:12
This class is not needed any more.
| |
| 157 public: | |
| 158 explicit EffectStream() {} | |
| 159 private: | |
| 160 DISALLOW_COPY_AND_ASSIGN(EffectStream); | |
| 161 }; | |
| 162 | |
| 156 // Texture class, representing a texture resource. | 163 // Texture class, representing a texture resource. |
| 157 class Texture: public Resource { | 164 class Texture: public Resource { |
| 158 public: | 165 public: |
| 159 Texture(texture::Type type, | 166 Texture(texture::Type type, |
| 160 unsigned int levels, | 167 unsigned int levels, |
| 161 texture::Format format, | 168 texture::Format format, |
| 162 unsigned int flags) | 169 unsigned int flags) |
| 163 : type_(type), | 170 : type_(type), |
| 164 levels_(levels), | 171 levels_(levels), |
| 165 format_(format), | 172 format_(format), |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 return down_cast<T*>(container_.Get(id)); | 247 return down_cast<T*>(container_.Get(id)); |
| 241 } | 248 } |
| 242 private: | 249 private: |
| 243 ResourceMapBase container_; | 250 ResourceMapBase container_; |
| 244 }; | 251 }; |
| 245 | 252 |
| 246 } // namespace command_buffer | 253 } // namespace command_buffer |
| 247 } // namespace o3d | 254 } // namespace o3d |
| 248 | 255 |
| 249 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_RESOURCE_H__ | 256 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_RESOURCE_H__ |
| OLD | NEW |