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

Side by Side Diff: cc/blink/web_compositor_support_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_COMPOSITOR_SUPPORT_IMPL_H_ 5 #ifndef CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "cc/blink/cc_blink_export.h" 10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebCompositorSupport.h" 11 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" 12 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
13 #include "third_party/WebKit/public/platform/WebLayer.h" 13 #include "third_party/WebKit/public/platform/WebLayer.h"
14 14
15 namespace cc_blink { 15 namespace cc_blink {
16 16
17 class CC_BLINK_EXPORT WebCompositorSupportImpl 17 class CC_BLINK_EXPORT WebCompositorSupportImpl
18 : public NON_EXPORTED_BASE(blink::WebCompositorSupport) { 18 : public NON_EXPORTED_BASE(blink::WebCompositorSupport) {
19 public: 19 public:
20 WebCompositorSupportImpl(); 20 WebCompositorSupportImpl();
21 ~WebCompositorSupportImpl() override; 21 ~WebCompositorSupportImpl() override;
22 22
23 blink::WebLayer* createLayer() override; 23 std::unique_ptr<blink::WebLayer> createLayer() override;
24 blink::WebLayer* createLayerFromCCLayer(cc::Layer*) override; 24 std::unique_ptr<blink::WebLayer> createLayerFromCCLayer(cc::Layer*) override;
25 blink::WebContentLayer* createContentLayer( 25 std::unique_ptr<blink::WebContentLayer> createContentLayer(
26 blink::WebContentLayerClient* client) override; 26 blink::WebContentLayerClient* client) override;
27 blink::WebExternalTextureLayer* createExternalTextureLayer( 27 std::unique_ptr<blink::WebExternalTextureLayer> createExternalTextureLayer(
28 cc::TextureLayerClient* client) override; 28 cc::TextureLayerClient* client) override;
29 blink::WebImageLayer* createImageLayer() override; 29 std::unique_ptr<blink::WebImageLayer> createImageLayer() override;
30 blink::WebScrollbarLayer* createScrollbarLayer( 30 std::unique_ptr<blink::WebScrollbarLayer> createScrollbarLayer(
31 blink::WebScrollbar* scrollbar, 31 std::unique_ptr<blink::WebScrollbar> scrollbar,
32 blink::WebScrollbarThemePainter painter, 32 blink::WebScrollbarThemePainter painter,
33 blink::WebScrollbarThemeGeometry*) override; 33 std::unique_ptr<blink::WebScrollbarThemeGeometry>) override;
34 blink::WebScrollbarLayer* createSolidColorScrollbarLayer( 34 std::unique_ptr<blink::WebScrollbarLayer> createSolidColorScrollbarLayer(
35 blink::WebScrollbar::Orientation orientation, 35 blink::WebScrollbar::Orientation orientation,
36 int thumb_thickness, 36 int thumb_thickness,
37 int track_start, 37 int track_start,
38 bool is_left_side_vertical_scrollbar) override; 38 bool is_left_side_vertical_scrollbar) override;
39 39
40 private: 40 private:
41 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl); 41 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl);
42 }; 42 };
43 43
44 } // namespace cc_blink 44 } // namespace cc_blink
45 45
46 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_ 46 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698