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

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

Issue 2765053002: Avoid exposing cc::Layer tree to CompositorProxy (Closed)
Patch Set: Rebase onto blink reformat Created 3 years, 8 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 #include "web/CompositorMutatorImpl.h" 5 #include "web/CompositorMutatorImpl.h"
6 6
7 #include "core/animation/CustomCompositorAnimationManager.h" 7 #include "core/animation/CustomCompositorAnimationManager.h"
8 #include "core/dom/CompositorProxy.h" 8 #include "core/dom/CompositorProxy.h"
9 #include "platform/CrossThreadFunctional.h" 9 #include "platform/CrossThreadFunctional.h"
10 #include "platform/WaitableEvent.h" 10 #include "platform/WaitableEvent.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 DCHECK(animators_.Contains(animator)); 89 DCHECK(animators_.Contains(animator));
90 animators_.erase(animator); 90 animators_.erase(animator);
91 } 91 }
92 92
93 void CompositorMutatorImpl::SetNeedsMutate() { 93 void CompositorMutatorImpl::SetNeedsMutate() {
94 DCHECK(!IsMainThread()); 94 DCHECK(!IsMainThread());
95 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate"); 95 TRACE_EVENT0("compositor-worker", "CompositorMutatorImpl::setNeedsMutate");
96 client_->SetNeedsMutate(); 96 client_->SetNeedsMutate();
97 } 97 }
98 98
99 void CompositorMutatorImpl::RegisterCompositorProxy(
100 const CompositorProxy* proxy) {
101 TRACE_EVENT0("compositor-worker",
102 "CompositorMutatorImpl::registerCompositorProxy");
103 client_->RegisterCompositorProxy(proxy->ProxyId(), proxy->ElementId(),
104 proxy->CompositorMutableProperties());
105 }
106
107 void CompositorMutatorImpl::UnregisterCompositorProxy(
108 const CompositorProxy* proxy) {
109 TRACE_EVENT0("compositor-worker",
110 "CompositorMutatorImpl::unregisterCompositorProxy");
111 client_->UnregisterCompositorProxy(proxy->ProxyId());
112 }
113
99 } // namespace blink 114 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698