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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. Created 4 years, 6 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 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 PaintArtifactCompositor_h 5 #ifndef PaintArtifactCompositor_h
6 #define PaintArtifactCompositor_h 6 #define PaintArtifactCompositor_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "wtf/Noncopyable.h" 10 #include "wtf/Noncopyable.h"
11 #include "wtf/OwnPtr.h"
12 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
12 #include <memory>
13 13
14 namespace cc { 14 namespace cc {
15 class Layer; 15 class Layer;
16 } 16 }
17 17
18 namespace gfx { 18 namespace gfx {
19 class Transform; 19 class Transform;
20 } 20 }
21 21
22 namespace blink { 22 namespace blink {
(...skipping 26 matching lines...) Expand all
49 // WebLayer. 49 // WebLayer.
50 WebLayer* getWebLayer() const { return m_webLayer.get(); } 50 WebLayer* getWebLayer() const { return m_webLayer.get(); }
51 51
52 private: 52 private:
53 class ContentLayerClientImpl; 53 class ContentLayerClientImpl;
54 54
55 // Builds a leaf layer that represents a single paint chunk. 55 // Builds a leaf layer that represents a single paint chunk.
56 scoped_refptr<cc::Layer> layerForPaintChunk(const PaintArtifact&, const Pain tChunk&, gfx::Transform); 56 scoped_refptr<cc::Layer> layerForPaintChunk(const PaintArtifact&, const Pain tChunk&, gfx::Transform);
57 57
58 scoped_refptr<cc::Layer> m_rootLayer; 58 scoped_refptr<cc::Layer> m_rootLayer;
59 OwnPtr<WebLayer> m_webLayer; 59 std::unique_ptr<WebLayer> m_webLayer;
60 Vector<OwnPtr<ContentLayerClientImpl>> m_contentLayerClients; 60 Vector<std::unique_ptr<ContentLayerClientImpl>> m_contentLayerClients;
61 }; 61 };
62 62
63 } // namespace blink 63 } // namespace blink
64 64
65 #endif // PaintArtifactCompositor_h 65 #endif // PaintArtifactCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698