| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_GL_CA_RENDERER_LAYER_PARAMS_H_ | 5 #ifndef UI_GL_CA_RENDERER_LAYER_PARAMS_H_ |
| 6 #define UI_GL_CA_RENDERER_LAYER_PARAMS_H_ | 6 #define UI_GL_CA_RENDERER_LAYER_PARAMS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 DROP_SHADOW, | 62 DROP_SHADOW, |
| 63 MAX = DROP_SHADOW | 63 MAX = DROP_SHADOW |
| 64 }; | 64 }; |
| 65 struct GL_EXPORT FilterEffect { | 65 struct GL_EXPORT FilterEffect { |
| 66 FilterEffectType type = FilterEffectType::GRAYSCALE; | 66 FilterEffectType type = FilterEffectType::GRAYSCALE; |
| 67 | 67 |
| 68 // For every filter other than DROP_SHADOW, only |amount| is populated. | 68 // For every filter other than DROP_SHADOW, only |amount| is populated. |
| 69 float amount = 0; | 69 float amount = 0; |
| 70 gfx::Point drop_shadow_offset; | 70 gfx::Point drop_shadow_offset; |
| 71 SkColor drop_shadow_color = 0; | 71 SkColor drop_shadow_color = 0; |
| 72 | |
| 73 bool operator==(const FilterEffect& rhs) const; | |
| 74 }; | 72 }; |
| 75 using FilterEffects = std::vector<FilterEffect>; | 73 using FilterEffects = std::vector<FilterEffect>; |
| 76 | 74 |
| 77 FilterEffects filter_effects; | 75 FilterEffects filter_effects; |
| 78 }; | 76 }; |
| 79 | 77 |
| 80 } // namespace ui | 78 } // namespace ui |
| 81 | 79 |
| 82 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_ | 80 #endif // UI_GL_CA_RENDERER_LAYER_PARAMS_H_ |
| OLD | NEW |