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

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

Issue 2258833002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 3 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/output/software_renderer.cc ('k') | cc/playback/compositing_display_item.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 #ifndef CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool antialias_; 42 bool antialias_;
43 }; 43 };
44 44
45 class CC_EXPORT EndClipPathDisplayItem : public DisplayItem { 45 class CC_EXPORT EndClipPathDisplayItem : public DisplayItem {
46 public: 46 public:
47 EndClipPathDisplayItem(); 47 EndClipPathDisplayItem();
48 explicit EndClipPathDisplayItem(const proto::DisplayItem& proto); 48 explicit EndClipPathDisplayItem(const proto::DisplayItem& proto);
49 ~EndClipPathDisplayItem() override; 49 ~EndClipPathDisplayItem() override;
50 50
51 static std::unique_ptr<EndClipPathDisplayItem> Create() { 51 static std::unique_ptr<EndClipPathDisplayItem> Create() {
52 return base::WrapUnique(new EndClipPathDisplayItem()); 52 return base::MakeUnique<EndClipPathDisplayItem>();
53 } 53 }
54 54
55 void ToProtobuf(proto::DisplayItem* proto) const override; 55 void ToProtobuf(proto::DisplayItem* proto) const override;
56 void Raster(SkCanvas* canvas, 56 void Raster(SkCanvas* canvas,
57 SkPicture::AbortCallback* callback) const override; 57 SkPicture::AbortCallback* callback) const override;
58 void AsValueInto(const gfx::Rect& visual_rect, 58 void AsValueInto(const gfx::Rect& visual_rect,
59 base::trace_event::TracedValue* array) const override; 59 base::trace_event::TracedValue* array) const override;
60 size_t ExternalMemoryUsage() const override; 60 size_t ExternalMemoryUsage() const override;
61 61
62 int ApproximateOpCount() const { return 0; } 62 int ApproximateOpCount() const { return 0; }
63 }; 63 };
64 64
65 } // namespace cc 65 } // namespace cc
66 66
67 #endif // CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_ 67 #endif // CC_PLAYBACK_CLIP_PATH_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/playback/compositing_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698