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

Side by Side Diff: cc/trees/proxy.h

Issue 879913002: mechanical rename of base::debug -> base::trace_event for /cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_trace_part3
Patch Set: Edited a comment Created 5 years, 10 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
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_TREES_PROXY_H_ 5 #ifndef CC_TREES_PROXY_H_
6 #define CC_TREES_PROXY_H_ 6 #define CC_TREES_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "base/time/time.h" 15 #include "base/time/time.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "cc/base/cc_export.h" 17 #include "cc/base/cc_export.h"
18 18
19 namespace base { 19 namespace base {
20 namespace trace_event { 20 namespace trace_event {
21 class TracedValue; 21 class TracedValue;
22 } 22 }
23 23 class SingleThreadTaskRunner;
24 // TODO(ssid): remove these aliases after the tracing clients are moved to the
25 // new trace_event namespace. See crbug.com/451032. ETA: March 2015
26 namespace debug {
27 using ::base::trace_event::TracedValue;
28 } 24 }
29 class SingleThreadTaskRunner;
30 } // namespace base
31 25
32 namespace gfx { 26 namespace gfx {
33 class Rect; 27 class Rect;
34 class Vector2d; 28 class Vector2d;
35 } 29 }
36 30
37 namespace cc { 31 namespace cc {
38 class BlockingTaskRunner; 32 class BlockingTaskRunner;
39 class LayerTreeDebugState; 33 class LayerTreeDebugState;
40 class OutputSurface; 34 class OutputSurface;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 95
102 // Forces 3D commands on all contexts to wait for all previous SwapBuffers 96 // Forces 3D commands on all contexts to wait for all previous SwapBuffers
103 // to finish before executing in the GPU process. 97 // to finish before executing in the GPU process.
104 virtual void ForceSerializeOnSwapBuffers() = 0; 98 virtual void ForceSerializeOnSwapBuffers() = 0;
105 99
106 // Maximum number of sub-region texture updates supported for each commit. 100 // Maximum number of sub-region texture updates supported for each commit.
107 virtual size_t MaxPartialTextureUpdates() const = 0; 101 virtual size_t MaxPartialTextureUpdates() const = 0;
108 102
109 virtual bool SupportsImplScrolling() const = 0; 103 virtual bool SupportsImplScrolling() const = 0;
110 104
111 virtual void AsValueInto(base::debug::TracedValue* value) const = 0; 105 virtual void AsValueInto(base::trace_event::TracedValue* value) const = 0;
112 106
113 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; 107 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0;
114 108
115 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0; 109 virtual void SetChildrenNeedBeginFrames(bool children_need_begin_frames) = 0;
116 110
117 // Testing hooks 111 // Testing hooks
118 virtual bool MainFrameWillHappenForTesting() = 0; 112 virtual bool MainFrameWillHappenForTesting() = 0;
119 113
120 BlockingTaskRunner* blocking_main_thread_task_runner() const { 114 BlockingTaskRunner* blocking_main_thread_task_runner() const {
121 return blocking_main_thread_task_runner_.get(); 115 return blocking_main_thread_task_runner_.get();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 157 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
164 ~DebugScopedSetMainThreadBlocked() {} 158 ~DebugScopedSetMainThreadBlocked() {}
165 private: 159 private:
166 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 160 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
167 }; 161 };
168 #endif 162 #endif
169 163
170 } // namespace cc 164 } // namespace cc
171 165
172 #endif // CC_TREES_PROXY_H_ 166 #endif // CC_TREES_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698