| Index: gpu/command_buffer/service/shader_translator.h
|
| diff --git a/gpu/command_buffer/service/shader_translator.h b/gpu/command_buffer/service/shader_translator.h
|
| index 9173740170de0c2abb4fbadd90f967c33dbb71b9..ee1ff1107646ce6a8b8d527d148024e8a96bd8d0 100644
|
| --- a/gpu/command_buffer/service/shader_translator.h
|
| +++ b/gpu/command_buffer/service/shader_translator.h
|
| @@ -64,6 +64,13 @@ class ShaderTranslatorInterface {
|
| size(_size),
|
| name(_name) {
|
| }
|
| + bool operator==(
|
| + const ShaderTranslatorInterface::VariableInfo& other) const {
|
| + return type == other.type &&
|
| + size == other.size &&
|
| + strcmp(name.c_str(), other.name.c_str()) == 0;
|
| + }
|
| +
|
| int type;
|
| int size;
|
| std::string name; // name in the original shader source.
|
|
|