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

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

Issue 380763002: Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed memory leak found by Linux ASAN Created 6 years, 4 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('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_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; 166 virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
167 virtual bool CommitRequested() const OVERRIDE; 167 virtual bool CommitRequested() const OVERRIDE;
168 virtual bool BeginMainFrameRequested() const OVERRIDE; 168 virtual bool BeginMainFrameRequested() const OVERRIDE;
169 virtual void MainThreadHasStoppedFlinging() OVERRIDE; 169 virtual void MainThreadHasStoppedFlinging() OVERRIDE;
170 virtual void Start() OVERRIDE; 170 virtual void Start() OVERRIDE;
171 virtual void Stop() OVERRIDE; 171 virtual void Stop() OVERRIDE;
172 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; 172 virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
173 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 173 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
174 virtual bool SupportsImplScrolling() const OVERRIDE; 174 virtual bool SupportsImplScrolling() const OVERRIDE;
175 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE; 175 virtual void SetDebugState(const LayerTreeDebugState& debug_state) OVERRIDE;
176 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 176 virtual void AsValueInto(base::debug::TracedValue* value) const OVERRIDE;
177 virtual bool CommitPendingForTesting() OVERRIDE; 177 virtual bool CommitPendingForTesting() OVERRIDE;
178 virtual scoped_ptr<base::Value> SchedulerAsValueForTesting() OVERRIDE;
179 178
180 // LayerTreeHostImplClient implementation 179 // LayerTreeHostImplClient implementation
181 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE; 180 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE;
182 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 181 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
183 virtual void CommitVSyncParameters(base::TimeTicks timebase, 182 virtual void CommitVSyncParameters(base::TimeTicks timebase,
184 base::TimeDelta interval) OVERRIDE; 183 base::TimeDelta interval) OVERRIDE;
185 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE; 184 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE;
186 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 185 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
187 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE; 186 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE;
188 virtual void DidSwapBuffersOnImplThread() OVERRIDE; 187 virtual void DidSwapBuffersOnImplThread() OVERRIDE;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 bool* has_initialized_output_surface); 269 bool* has_initialized_output_surface);
271 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion); 270 void DeleteContentsTexturesOnImplThread(CompletionEvent* completion);
272 void InitializeOutputSurfaceOnImplThread( 271 void InitializeOutputSurfaceOnImplThread(
273 scoped_ptr<OutputSurface> output_surface); 272 scoped_ptr<OutputSurface> output_surface);
274 void FinishGLOnImplThread(CompletionEvent* completion); 273 void FinishGLOnImplThread(CompletionEvent* completion);
275 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion); 274 void LayerTreeHostClosedOnImplThread(CompletionEvent* completion);
276 DrawResult DrawSwapInternal(bool forced_draw); 275 DrawResult DrawSwapInternal(bool forced_draw);
277 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); 276 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion);
278 void CheckOutputSurfaceStatusOnImplThread(); 277 void CheckOutputSurfaceStatusOnImplThread();
279 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); 278 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request);
280 void SchedulerAsValueOnImplThreadForTesting(SchedulerStateRequest* request);
281 void AsValueOnImplThread(CompletionEvent* completion, 279 void AsValueOnImplThread(CompletionEvent* completion,
282 base::DictionaryValue* state) const; 280 base::debug::TracedValue* state) const;
283 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile); 281 void SetSwapUsedIncompleteTileOnImplThread(bool used_incomplete_tile);
284 void MainThreadHasStoppedFlingingOnImplThread(); 282 void MainThreadHasStoppedFlingingOnImplThread();
285 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled); 283 void SetInputThrottledUntilCommitOnImplThread(bool is_throttled);
286 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state); 284 void SetDebugStateOnImplThread(const LayerTreeDebugState& debug_state);
287 285
288 LayerTreeHost* layer_tree_host(); 286 LayerTreeHost* layer_tree_host();
289 const LayerTreeHost* layer_tree_host() const; 287 const LayerTreeHost* layer_tree_host() const;
290 288
291 // Use accessors instead of this variable directly. 289 // Use accessors instead of this variable directly.
292 MainThreadOnly main_thread_only_vars_unsafe_; 290 MainThreadOnly main_thread_only_vars_unsafe_;
293 MainThreadOnly& main(); 291 MainThreadOnly& main();
294 292
295 // Use accessors instead of this variable directly. 293 // Use accessors instead of this variable directly.
296 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_; 294 MainThreadOrBlockedMainThread main_thread_or_blocked_vars_unsafe_;
297 MainThreadOrBlockedMainThread& blocked_main(); 295 MainThreadOrBlockedMainThread& blocked_main();
298 296
299 // Use accessors instead of this variable directly. 297 // Use accessors instead of this variable directly.
300 CompositorThreadOnly compositor_thread_vars_unsafe_; 298 CompositorThreadOnly compositor_thread_vars_unsafe_;
301 CompositorThreadOnly& impl(); 299 CompositorThreadOnly& impl();
302 300
303 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 301 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
304 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 302 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
305 303
306 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 304 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
307 }; 305 };
308 306
309 } // namespace cc 307 } // namespace cc
310 308
311 #endif // CC_TREES_THREAD_PROXY_H_ 309 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698