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

Side by Side Diff: cc/playback/compositing_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, 4 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.h ('k') | cc/playback/filter_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_COMPOSITING_DISPLAY_ITEM_H_ 5 #ifndef CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 6 #define CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool lcd_text_requires_opaque_layer_; 57 bool lcd_text_requires_opaque_layer_;
58 }; 58 };
59 59
60 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem { 60 class CC_EXPORT EndCompositingDisplayItem : public DisplayItem {
61 public: 61 public:
62 EndCompositingDisplayItem(); 62 EndCompositingDisplayItem();
63 explicit EndCompositingDisplayItem(const proto::DisplayItem& proto); 63 explicit EndCompositingDisplayItem(const proto::DisplayItem& proto);
64 ~EndCompositingDisplayItem() override; 64 ~EndCompositingDisplayItem() override;
65 65
66 static std::unique_ptr<EndCompositingDisplayItem> Create() { 66 static std::unique_ptr<EndCompositingDisplayItem> Create() {
67 return base::WrapUnique(new EndCompositingDisplayItem()); 67 return base::MakeUnique<EndCompositingDisplayItem>();
68 } 68 }
69 69
70 void ToProtobuf(proto::DisplayItem* proto) const override; 70 void ToProtobuf(proto::DisplayItem* proto) const override;
71 void Raster(SkCanvas* canvas, 71 void Raster(SkCanvas* canvas,
72 SkPicture::AbortCallback* callback) const override; 72 SkPicture::AbortCallback* callback) const override;
73 void AsValueInto(const gfx::Rect& visual_rect, 73 void AsValueInto(const gfx::Rect& visual_rect,
74 base::trace_event::TracedValue* array) const override; 74 base::trace_event::TracedValue* array) const override;
75 size_t ExternalMemoryUsage() const override; 75 size_t ExternalMemoryUsage() const override;
76 76
77 int ApproximateOpCount() const { return 0; } 77 int ApproximateOpCount() const { return 0; }
78 }; 78 };
79 79
80 } // namespace cc 80 } // namespace cc
81 81
82 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_ 82 #endif // CC_PLAYBACK_COMPOSITING_DISPLAY_ITEM_H_
OLDNEW
« no previous file with comments | « cc/playback/clip_path_display_item.h ('k') | cc/playback/filter_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698