| 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 #include "ui/gl/ca_renderer_layer_params.h" | 5 #include "ui/gl/ca_renderer_layer_params.h" |
| 6 | 6 |
| 7 namespace ui { | 7 namespace ui { |
| 8 | 8 |
| 9 CARendererLayerParams::CARendererLayerParams(bool is_clipped, | 9 CARendererLayerParams::CARendererLayerParams(bool is_clipped, |
| 10 const gfx::Rect clip_rect, | 10 const gfx::Rect clip_rect, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 rect(rect), | 26 rect(rect), |
| 27 background_color(background_color), | 27 background_color(background_color), |
| 28 edge_aa_mask(edge_aa_mask), | 28 edge_aa_mask(edge_aa_mask), |
| 29 opacity(opacity), | 29 opacity(opacity), |
| 30 filter(filter) {} | 30 filter(filter) {} |
| 31 | 31 |
| 32 CARendererLayerParams::CARendererLayerParams( | 32 CARendererLayerParams::CARendererLayerParams( |
| 33 const CARendererLayerParams& other) = default; | 33 const CARendererLayerParams& other) = default; |
| 34 CARendererLayerParams::~CARendererLayerParams() = default; | 34 CARendererLayerParams::~CARendererLayerParams() = default; |
| 35 | 35 |
| 36 bool CARendererLayerParams::FilterEffect::operator==( | |
| 37 const FilterEffect& rhs) const { | |
| 38 return type == rhs.type && amount == rhs.amount && | |
| 39 drop_shadow_offset == rhs.drop_shadow_offset && | |
| 40 drop_shadow_color == rhs.drop_shadow_color; | |
| 41 } | |
| 42 | |
| 43 } // namespace ui | 36 } // namespace ui |
| OLD | NEW |