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

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

Powered by Google App Engine
This is Rietveld 408576698