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

Side by Side Diff: cc/paint/compositing_display_item.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 | « cc/paint/compositing_display_item.h ('k') | cc/paint/discardable_image_map.h » ('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 "cc/playback/compositing_display_item.h" 5 #include "cc/paint/compositing_display_item.h"
6 6
7 #include "third_party/skia/include/core/SkColorFilter.h" 7 #include "third_party/skia/include/core/SkColorFilter.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
11 CompositingDisplayItem::CompositingDisplayItem( 11 CompositingDisplayItem::CompositingDisplayItem(
12 uint8_t alpha, 12 uint8_t alpha,
13 SkBlendMode xfermode, 13 SkBlendMode xfermode,
14 SkRect* bounds, 14 SkRect* bounds,
15 sk_sp<SkColorFilter> color_filter, 15 sk_sp<SkColorFilter> color_filter,
16 bool lcd_text_requires_opaque_layer) 16 bool lcd_text_requires_opaque_layer)
17 : DisplayItem(COMPOSITING), 17 : DisplayItem(COMPOSITING),
18 alpha(alpha), 18 alpha(alpha),
19 xfermode(xfermode), 19 xfermode(xfermode),
20 has_bounds(!!bounds), 20 has_bounds(!!bounds),
21 bounds(bounds ? SkRect(*bounds) : SkRect()), 21 bounds(bounds ? SkRect(*bounds) : SkRect()),
22 color_filter(std::move(color_filter)), 22 color_filter(std::move(color_filter)),
23 lcd_text_requires_opaque_layer(lcd_text_requires_opaque_layer) {} 23 lcd_text_requires_opaque_layer(lcd_text_requires_opaque_layer) {}
24 24
25 CompositingDisplayItem::~CompositingDisplayItem() = default; 25 CompositingDisplayItem::~CompositingDisplayItem() = default;
26 26
27 EndCompositingDisplayItem::EndCompositingDisplayItem() 27 EndCompositingDisplayItem::EndCompositingDisplayItem()
28 : DisplayItem(END_COMPOSITING) {} 28 : DisplayItem(END_COMPOSITING) {}
29 29
30 EndCompositingDisplayItem::~EndCompositingDisplayItem() = default; 30 EndCompositingDisplayItem::~EndCompositingDisplayItem() = default;
31 31
32 } // namespace cc 32 } // namespace cc
OLDNEW
« no previous file with comments | « cc/paint/compositing_display_item.h ('k') | cc/paint/discardable_image_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698