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

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

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 years, 7 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/resources/clip_path_display_item.cc ('k') | cc/resources/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_RESOURCES_COMPOSITING_DISPLAY_ITEM_H_
6 #define CC_RESOURCES_COMPOSITING_DISPLAY_ITEM_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h"
10 #include "cc/resources/display_item.h"
11 #include "skia/ext/refptr.h"
12 #include "third_party/skia/include/core/SkColorFilter.h"
13 #include "third_party/skia/include/core/SkRect.h"
14 #include "third_party/skia/include/core/SkXfermode.h"
15 #include "ui/gfx/geometry/rect_f.h"
16
17 class SkCanvas;
18 class SkDrawPictureCallback;
19
20 namespace cc {
21
22 class CC_EXPORT CompositingDisplayItem : public DisplayItem {
23 public:
24 CompositingDisplayItem();
25 ~CompositingDisplayItem() override;
26
27 void SetNew(uint8_t alpha,
28 SkXfermode::Mode xfermode,
29 SkRect* bounds,
30 skia::RefPtr<SkColorFilter> color_filter);
31
32 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
33 void AsValueInto(base::trace_event::TracedValue* array) const override;
34
35 private:
36 uint8_t alpha_;
37 SkXfermode::Mode xfermode_;
38 bool has_bounds_;
39 SkRect bounds_;
40 skia::RefPtr<SkColorFilter> color_filter_;
41 };
42
43 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem {
44 public:
45 EndCompositingDisplayItem();
46 ~EndCompositingDisplayItem() override;
47
48 static scoped_ptr<EndCompositingDisplayItem> Create() {
49 return make_scoped_ptr(new EndCompositingDisplayItem());
50 }
51
52 void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
53 void AsValueInto(base::trace_event::TracedValue* array) const override;
54 };
55
56 } // namespace cc
57
58 #endif // CC_RESOURCES_COMPOSITING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/resources/clip_path_display_item.cc ('k') | cc/resources/compositing_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698