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

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

Issue 270703004: Making BeginFrameArgs work with TRACE_EVENT system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using AsValue rather than StateAsValue. Created 6 years, 7 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 | Annotate | Revision Log
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"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 // Maximum number of sub-region texture updates supported for each commit. 95 // Maximum number of sub-region texture updates supported for each commit.
96 virtual size_t MaxPartialTextureUpdates() const = 0; 96 virtual size_t MaxPartialTextureUpdates() const = 0;
97 97
98 virtual scoped_ptr<base::Value> AsValue() const = 0; 98 virtual scoped_ptr<base::Value> AsValue() const = 0;
99 99
100 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0; 100 virtual void SetDebugState(const LayerTreeDebugState& debug_state) = 0;
101 101
102 // Testing hooks 102 // Testing hooks
103 virtual bool CommitPendingForTesting() = 0; 103 virtual bool CommitPendingForTesting() = 0;
104 virtual scoped_ptr<base::Value> SchedulerStateAsValueForTesting(); 104 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting();
105 105
106 protected: 106 protected:
107 explicit Proxy( 107 explicit Proxy(
108 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 108 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
109 friend class DebugScopedSetImplThread; 109 friend class DebugScopedSetImplThread;
110 friend class DebugScopedSetMainThread; 110 friend class DebugScopedSetMainThread;
111 friend class DebugScopedSetMainThreadBlocked; 111 friend class DebugScopedSetMainThreadBlocked;
112 112
113 private: 113 private:
114 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 114 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
(...skipping 27 matching lines...) Expand all
142 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {} 142 explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) {}
143 ~DebugScopedSetMainThreadBlocked() {} 143 ~DebugScopedSetMainThreadBlocked() {}
144 private: 144 private:
145 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked); 145 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetMainThreadBlocked);
146 }; 146 };
147 #endif 147 #endif
148 148
149 } // namespace cc 149 } // namespace cc
150 150
151 #endif // CC_TREES_PROXY_H_ 151 #endif // CC_TREES_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698