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

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

Issue 2346663004: Moving platform tracing things into platform/tracing. (Closed)
Patch Set: Created 4 years, 3 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 #include "web/CompositorProxyClientImpl.h" 5 #include "web/CompositorProxyClientImpl.h"
6 6
7 #include "core/dom/CompositorProxy.h" 7 #include "core/dom/CompositorProxy.h"
8 #include "modules/compositorworker/CompositorWorkerGlobalScope.h" 8 #include "modules/compositorworker/CompositorWorkerGlobalScope.h"
9 #include "platform/TraceEvent.h"
10 #include "platform/graphics/CompositorMutableStateProvider.h" 9 #include "platform/graphics/CompositorMutableStateProvider.h"
10 #include "platform/tracing/TraceEvent.h"
11 #include "web/CompositorMutatorImpl.h" 11 #include "web/CompositorMutatorImpl.h"
12 #include "wtf/CurrentTime.h" 12 #include "wtf/CurrentTime.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 // A helper class that updates proxies mutable state on creation and reset it 16 // A helper class that updates proxies mutable state on creation and reset it
17 // on destruction. This can be used with rAF callback to ensure no mutation is 17 // on destruction. This can be used with rAF callback to ensure no mutation is
18 // allowed outside rAF. 18 // allowed outside rAF.
19 class ScopedCompositorMutableState final { 19 class ScopedCompositorMutableState final {
20 WTF_MAKE_NONCOPYABLE(ScopedCompositorMutableState); 20 WTF_MAKE_NONCOPYABLE(ScopedCompositorMutableState);
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 { 107 {
108 m_proxies.add(proxy); 108 m_proxies.add(proxy);
109 } 109 }
110 110
111 void CompositorProxyClientImpl::unregisterCompositorProxy(CompositorProxy* proxy ) 111 void CompositorProxyClientImpl::unregisterCompositorProxy(CompositorProxy* proxy )
112 { 112 {
113 m_proxies.remove(proxy); 113 m_proxies.remove(proxy);
114 } 114 }
115 115
116 } // namespace blink 116 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698