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

Side by Side Diff: third_party/WebKit/Source/web/CompositorMutatorImpl.h

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CompositorMutatorImpl_h 5 #ifndef CompositorMutatorImpl_h
6 #define CompositorMutatorImpl_h 6 #define CompositorMutatorImpl_h
7 7
8 #include "core/animation/CustomCompositorAnimationManager.h" 8 #include "core/animation/CustomCompositorAnimationManager.h"
9 #include "platform/graphics/CompositorMutator.h" 9 #include "platform/graphics/CompositorMutator.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/heap/HeapAllocator.h" 11 #include "platform/heap/HeapAllocator.h"
12 #include "wtf/Noncopyable.h" 12 #include "wtf/Noncopyable.h"
13 #include "wtf/OwnPtr.h" 13 #include <memory>
14 #include "wtf/PassOwnPtr.h"
15 14
16 namespace blink { 15 namespace blink {
17 16
18 class CompositorProxy; 17 class CompositorProxy;
19 class CompositorProxyClientImpl; 18 class CompositorProxyClientImpl;
20 class CompositorWorkerGlobalScope; 19 class CompositorWorkerGlobalScope;
21 class CompositorMutatorClient; 20 class CompositorMutatorClient;
22 21
23 // Fans out requests from the compositor to all of the registered ProxyClients w hich 22 // Fans out requests from the compositor to all of the registered ProxyClients w hich
24 // can then mutate layers through their CompositorProxy interfaces. Requests for 23 // can then mutate layers through their CompositorProxy interfaces. Requests for
(...skipping 22 matching lines...) Expand all
47 46
48 void setClient(CompositorMutatorClient* client) { m_client = client; } 47 void setClient(CompositorMutatorClient* client) { m_client = client; }
49 CustomCompositorAnimationManager* animationManager() { return m_animationMan ager.get(); } 48 CustomCompositorAnimationManager* animationManager() { return m_animationMan ager.get(); }
50 49
51 private: 50 private:
52 CompositorMutatorImpl(); 51 CompositorMutatorImpl();
53 52
54 using ProxyClients = HeapHashSet<WeakMember<CompositorProxyClientImpl>>; 53 using ProxyClients = HeapHashSet<WeakMember<CompositorProxyClientImpl>>;
55 ProxyClients m_proxyClients; 54 ProxyClients m_proxyClients;
56 55
57 OwnPtr<CustomCompositorAnimationManager> m_animationManager; 56 std::unique_ptr<CustomCompositorAnimationManager> m_animationManager;
58 CompositorMutatorClient* m_client; 57 CompositorMutatorClient* m_client;
59 }; 58 };
60 59
61 } // namespace blink 60 } // namespace blink
62 61
63 #endif // CompositorMutatorImpl_h 62 #endif // CompositorMutatorImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ColorChooserUIController.cpp ('k') | third_party/WebKit/Source/web/CompositorMutatorImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698