Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: ui/compositor/clip_recorder.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/compositor/canvas_painter.cc ('k') | ui/compositor/compositing_recorder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/compositor/canvas_painter.cc ('k') | ui/compositor/compositing_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698