| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "cc/playback/clip_display_item.h" | 5 #include "cc/paint/clip_display_item.h" |
| 6 | 6 |
| 7 namespace cc { | 7 namespace cc { |
| 8 | 8 |
| 9 ClipDisplayItem::ClipDisplayItem(const gfx::Rect& clip_rect, | 9 ClipDisplayItem::ClipDisplayItem(const gfx::Rect& clip_rect, |
| 10 std::vector<SkRRect> rounded_clip_rects, | 10 std::vector<SkRRect> rounded_clip_rects, |
| 11 bool antialias) | 11 bool antialias) |
| 12 : DisplayItem(CLIP), | 12 : DisplayItem(CLIP), |
| 13 clip_rect(clip_rect), | 13 clip_rect(clip_rect), |
| 14 rounded_clip_rects(std::move(rounded_clip_rects)), | 14 rounded_clip_rects(std::move(rounded_clip_rects)), |
| 15 antialias(antialias) {} | 15 antialias(antialias) {} |
| 16 | 16 |
| 17 ClipDisplayItem::~ClipDisplayItem() = default; | 17 ClipDisplayItem::~ClipDisplayItem() = default; |
| 18 | 18 |
| 19 EndClipDisplayItem::EndClipDisplayItem() : DisplayItem(END_CLIP) {} | 19 EndClipDisplayItem::EndClipDisplayItem() : DisplayItem(END_CLIP) {} |
| 20 | 20 |
| 21 EndClipDisplayItem::~EndClipDisplayItem() = default; | 21 EndClipDisplayItem::~EndClipDisplayItem() = default; |
| 22 | 22 |
| 23 } // namespace cc | 23 } // namespace cc |
| OLD | NEW |