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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <memory> 13 #include "wtf/OwnPtr.h"
14 #include "wtf/PassOwnPtr.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 class CompositorProxy; 18 class CompositorProxy;
18 class CompositorProxyClientImpl; 19 class CompositorProxyClientImpl;
19 class CompositorWorkerGlobalScope; 20 class CompositorWorkerGlobalScope;
20 class CompositorMutatorClient; 21 class CompositorMutatorClient;
21 22
22 // Fans out requests from the compositor to all of the registered ProxyClients w hich 23 // Fans out requests from the compositor to all of the registered ProxyClients w hich
23 // can then mutate layers through their CompositorProxy interfaces. Requests for 24 // can then mutate layers through their CompositorProxy interfaces. Requests for
(...skipping 22 matching lines...) Expand all
46 47
47 void setClient(CompositorMutatorClient* client) { m_client = client; } 48 void setClient(CompositorMutatorClient* client) { m_client = client; }
48 CustomCompositorAnimationManager* animationManager() { return m_animationMan ager.get(); } 49 CustomCompositorAnimationManager* animationManager() { return m_animationMan ager.get(); }
49 50
50 private: 51 private:
51 CompositorMutatorImpl(); 52 CompositorMutatorImpl();
52 53
53 using ProxyClients = HeapHashSet<WeakMember<CompositorProxyClientImpl>>; 54 using ProxyClients = HeapHashSet<WeakMember<CompositorProxyClientImpl>>;
54 ProxyClients m_proxyClients; 55 ProxyClients m_proxyClients;
55 56
56 std::unique_ptr<CustomCompositorAnimationManager> m_animationManager; 57 OwnPtr<CustomCompositorAnimationManager> m_animationManager;
57 CompositorMutatorClient* m_client; 58 CompositorMutatorClient* m_client;
58 }; 59 };
59 60
60 } // namespace blink 61 } // namespace blink
61 62
62 #endif // CompositorMutatorImpl_h 63 #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