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

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

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: none 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
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 #ifndef CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 5 #ifndef CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 6 #define CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "cc/base/cc_export.h" 14 #include "cc/paint/display_item.h"
15 #include "cc/playback/display_item.h" 15 #include "cc/paint/paint_export.h"
16 #include "third_party/skia/include/core/SkColorFilter.h" 16 #include "third_party/skia/include/core/SkColorFilter.h"
17 #include "third_party/skia/include/core/SkRect.h" 17 #include "third_party/skia/include/core/SkRect.h"
18 #include "third_party/skia/include/core/SkRefCnt.h" 18 #include "third_party/skia/include/core/SkRefCnt.h"
19 #include "ui/gfx/geometry/rect_f.h" 19 #include "ui/gfx/geometry/rect_f.h"
20 20
21 class SkCanvas; 21 class SkCanvas;
22 22
23 namespace cc { 23 namespace cc {
24 24
25 class CC_EXPORT CompositingDisplayItem : public DisplayItem { 25 class CC_PAINT_EXPORT CompositingDisplayItem : public DisplayItem {
26 public: 26 public:
27 CompositingDisplayItem(uint8_t alpha, 27 CompositingDisplayItem(uint8_t alpha,
28 SkBlendMode xfermode, 28 SkBlendMode xfermode,
29 SkRect* bounds, 29 SkRect* bounds,
30 sk_sp<SkColorFilter> color_filter, 30 sk_sp<SkColorFilter> color_filter,
31 bool lcd_text_requires_opaque_layer); 31 bool lcd_text_requires_opaque_layer);
32 ~CompositingDisplayItem() override; 32 ~CompositingDisplayItem() override;
33 33
34 void Raster(SkCanvas* canvas, 34 void Raster(SkCanvas* canvas,
35 SkPicture::AbortCallback* callback) const override; 35 SkPicture::AbortCallback* callback) const override;
(...skipping 17 matching lines...) Expand all
53 bool lcd_text_requires_opaque_layer); 53 bool lcd_text_requires_opaque_layer);
54 54
55 uint8_t alpha_; 55 uint8_t alpha_;
56 SkBlendMode xfermode_; 56 SkBlendMode xfermode_;
57 bool has_bounds_; 57 bool has_bounds_;
58 SkRect bounds_; 58 SkRect bounds_;
59 sk_sp<SkColorFilter> color_filter_; 59 sk_sp<SkColorFilter> color_filter_;
60 bool lcd_text_requires_opaque_layer_; 60 bool lcd_text_requires_opaque_layer_;
61 }; 61 };
62 62
63 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem { 63 class CC_PAINT_EXPORT EndCompositingDisplayItem : public DisplayItem {
64 public: 64 public:
65 EndCompositingDisplayItem(); 65 EndCompositingDisplayItem();
66 ~EndCompositingDisplayItem() override; 66 ~EndCompositingDisplayItem() override;
67 67
68 static std::unique_ptr<EndCompositingDisplayItem> Create() { 68 static std::unique_ptr<EndCompositingDisplayItem> Create() {
69 return base::MakeUnique<EndCompositingDisplayItem>(); 69 return base::MakeUnique<EndCompositingDisplayItem>();
70 } 70 }
71 71
72 void Raster(SkCanvas* canvas, 72 void Raster(SkCanvas* canvas,
73 SkPicture::AbortCallback* callback) const override; 73 SkPicture::AbortCallback* callback) const override;
74 74
75 int ApproximateOpCount() const { return 0; } 75 int ApproximateOpCount() const { return 0; }
76 }; 76 };
77 77
78 } // namespace cc 78 } // namespace cc
79 79
80 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 80 #endif // CC_PAINT_COMPOSITING_DISPLAY_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698