OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/compositor/clip_recorder.h" | 5 #include "ui/compositor/clip_recorder.h" |
6 | 6 |
7 #include "cc/playback/clip_display_item.h" | 7 #include "cc/paint/clip_display_item.h" |
8 #include "cc/playback/clip_path_display_item.h" | 8 #include "cc/paint/clip_path_display_item.h" |
9 #include "cc/playback/display_item_list.h" | 9 #include "cc/paint/display_item_list.h" |
10 #include "ui/compositor/paint_context.h" | 10 #include "ui/compositor/paint_context.h" |
11 #include "ui/gfx/canvas.h" | 11 #include "ui/gfx/canvas.h" |
12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/gfx/geometry/rect_conversions.h" | 13 #include "ui/gfx/geometry/rect_conversions.h" |
14 #include "ui/gfx/path.h" | 14 #include "ui/gfx/path.h" |
15 #include "ui/gfx/skia_util.h" | 15 #include "ui/gfx/skia_util.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 ClipRecorder::ClipRecorder(const PaintContext& context) | 19 ClipRecorder::ClipRecorder(const PaintContext& context) |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 void ClipRecorder::ClipPathWithAntiAliasing(const gfx::Path& clip_path) { | 56 void ClipRecorder::ClipPathWithAntiAliasing(const gfx::Path& clip_path) { |
57 bool antialias = true; | 57 bool antialias = true; |
58 context_.list_->CreateAndAppendPairedBeginItem<cc::ClipPathDisplayItem>( | 58 context_.list_->CreateAndAppendPairedBeginItem<cc::ClipPathDisplayItem>( |
59 clip_path, antialias); | 59 clip_path, antialias); |
60 RecordCloser(CLIP_PATH); | 60 RecordCloser(CLIP_PATH); |
61 } | 61 } |
62 | 62 |
63 } // namespace ui | 63 } // namespace ui |
OLD | NEW |