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

Side by Side Diff: cc/playback/compositing_display_item.h

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/clip_path_display_item.cc ('k') | cc/playback/compositing_display_item.cc » ('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 #ifndef CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
7
8 #include <stddef.h>
9
10 #include "cc/base/cc_export.h"
11 #include "cc/playback/display_item.h"
12 #include "third_party/skia/include/core/SkBlendMode.h"
13 #include "third_party/skia/include/core/SkColorFilter.h"
14 #include "third_party/skia/include/core/SkRect.h"
15 #include "third_party/skia/include/core/SkRefCnt.h"
16
17 namespace cc {
18
19 class CC_EXPORT CompositingDisplayItem : public DisplayItem {
20 public:
21 CompositingDisplayItem(uint8_t alpha,
22 SkBlendMode xfermode,
23 SkRect* bounds,
24 sk_sp<SkColorFilter> color_filter,
25 bool lcd_text_requires_opaque_layer);
26 ~CompositingDisplayItem() override;
27
28 size_t ExternalMemoryUsage() const {
29 // TODO(pdr): Include color_filter's memory here.
30 return 0;
31 }
32 int ApproximateOpCount() const { return 1; }
33
34 const uint8_t alpha;
35 const SkBlendMode xfermode;
36 const bool has_bounds;
37 const SkRect bounds;
38 const sk_sp<SkColorFilter> color_filter;
39 const bool lcd_text_requires_opaque_layer;
40 };
41
42 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem {
43 public:
44 EndCompositingDisplayItem();
45 ~EndCompositingDisplayItem() override;
46
47 int ApproximateOpCount() const { return 0; }
48 };
49
50 } // namespace cc
51
52 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/clip_path_display_item.cc ('k') | cc/playback/compositing_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698