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

Side by Side Diff: cc/blink/web_content_layer_impl.h

Issue 2389973002: Use std::unique_ptr to signal ownership transfer in WebCompositorSupport (Closed)
Patch Set: rebase Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BLINK_WEB_CONTENT_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 13 matching lines...) Expand all
24 class WebContentLayerClient; 24 class WebContentLayerClient;
25 } 25 }
26 26
27 namespace cc_blink { 27 namespace cc_blink {
28 28
29 class WebContentLayerImpl : public blink::WebContentLayer, 29 class WebContentLayerImpl : public blink::WebContentLayer,
30 public cc::ContentLayerClient { 30 public cc::ContentLayerClient {
31 public: 31 public:
32 CC_BLINK_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient*); 32 CC_BLINK_EXPORT explicit WebContentLayerImpl(blink::WebContentLayerClient*);
33 33
34 ~WebContentLayerImpl() override;
35
34 // WebContentLayer implementation. 36 // WebContentLayer implementation.
35 blink::WebLayer* layer() override; 37 blink::WebLayer* layer() override;
36 38
37 protected: 39 protected:
38 ~WebContentLayerImpl() override;
39
40 // ContentLayerClient implementation. 40 // ContentLayerClient implementation.
41 gfx::Rect PaintableRegion() override; 41 gfx::Rect PaintableRegion() override;
42 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList( 42 scoped_refptr<cc::DisplayItemList> PaintContentsToDisplayList(
43 PaintingControlSetting painting_control) override; 43 PaintingControlSetting painting_control) override;
44 bool FillsBoundsCompletely() const override; 44 bool FillsBoundsCompletely() const override;
45 size_t GetApproximateUnsharedMemoryUsage() const override; 45 size_t GetApproximateUnsharedMemoryUsage() const override;
46 46
47 std::unique_ptr<WebLayerImpl> layer_; 47 std::unique_ptr<WebLayerImpl> layer_;
48 blink::WebContentLayerClient* client_; 48 blink::WebContentLayerClient* client_;
49 49
50 private: 50 private:
51 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl); 51 DISALLOW_COPY_AND_ASSIGN(WebContentLayerImpl);
52 }; 52 };
53 53
54 } // namespace cc_blink 54 } // namespace cc_blink
55 55
56 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_ 56 #endif // CC_BLINK_WEB_CONTENT_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698