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

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

Issue 12519006: cc:: Add RenderingStatsInstrumentation to manage collection of RenderingStats (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Updated all tests Created 7 years, 9 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/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 "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 30 matching lines...) Expand all
41 bool use_anchor, 41 bool use_anchor,
42 float scale, 42 float scale,
43 base::TimeDelta duration) OVERRIDE; 43 base::TimeDelta duration) OVERRIDE;
44 virtual void FinishAllRendering() OVERRIDE; 44 virtual void FinishAllRendering() OVERRIDE;
45 virtual bool IsStarted() const OVERRIDE; 45 virtual bool IsStarted() const OVERRIDE;
46 virtual bool InitializeOutputSurface() OVERRIDE; 46 virtual bool InitializeOutputSurface() OVERRIDE;
47 virtual void SetSurfaceReady() OVERRIDE; 47 virtual void SetSurfaceReady() OVERRIDE;
48 virtual void SetVisible(bool visible) OVERRIDE; 48 virtual void SetVisible(bool visible) OVERRIDE;
49 virtual bool InitializeRenderer() OVERRIDE; 49 virtual bool InitializeRenderer() OVERRIDE;
50 virtual bool RecreateOutputSurface() OVERRIDE; 50 virtual bool RecreateOutputSurface() OVERRIDE;
51 virtual void CollectRenderingStats(RenderingStats* stats) OVERRIDE;
52 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE; 51 virtual const RendererCapabilities& GetRendererCapabilities() const OVERRIDE;
53 virtual void SetNeedsAnimate() OVERRIDE; 52 virtual void SetNeedsAnimate() OVERRIDE;
54 virtual void SetNeedsCommit() OVERRIDE; 53 virtual void SetNeedsCommit() OVERRIDE;
55 virtual void SetNeedsRedraw() OVERRIDE; 54 virtual void SetNeedsRedraw() OVERRIDE;
56 virtual void SetDeferCommits(bool defer_commits) OVERRIDE; 55 virtual void SetDeferCommits(bool defer_commits) OVERRIDE;
57 virtual bool CommitRequested() const OVERRIDE; 56 virtual bool CommitRequested() const OVERRIDE;
58 virtual void MainThreadHasStoppedFlinging() OVERRIDE; 57 virtual void MainThreadHasStoppedFlinging() OVERRIDE;
59 virtual void Start() OVERRIDE; 58 virtual void Start() OVERRIDE;
60 virtual void Stop() OVERRIDE; 59 virtual void Stop() OVERRIDE;
61 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; 60 virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void ManageTilesOnImplThread(); 166 void ManageTilesOnImplThread();
168 void SetFullRootLayerDamageOnImplThread(); 167 void SetFullRootLayerDamageOnImplThread();
169 void AcquireLayerTexturesForMainThreadOnImplThread( 168 void AcquireLayerTexturesForMainThreadOnImplThread(
170 CompletionEvent* completion); 169 CompletionEvent* completion);
171 void RecreateOutputSurfaceOnImplThread( 170 void RecreateOutputSurfaceOnImplThread(
172 CompletionEvent* completion, 171 CompletionEvent* completion,
173 scoped_ptr<OutputSurface> output_surface, 172 scoped_ptr<OutputSurface> output_surface,
174 scoped_refptr<cc::ContextProvider> offscreen_context_provider, 173 scoped_refptr<cc::ContextProvider> offscreen_context_provider,
175 bool* recreate_succeeded, 174 bool* recreate_succeeded,
176 RendererCapabilities* capabilities); 175 RendererCapabilities* capabilities);
177 void RenderingStatsOnImplThread(CompletionEvent* completion,
178 RenderingStats* stats);
179 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal( 176 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal(
180 bool forced_draw); 177 bool forced_draw);
181 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); 178 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion);
182 void SetNeedsForcedCommitOnImplThread(); 179 void SetNeedsForcedCommitOnImplThread();
183 void CheckOutputSurfaceStatusOnImplThread(); 180 void CheckOutputSurfaceStatusOnImplThread();
184 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); 181 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request);
185 void CapturePictureOnImplThread(CompletionEvent* completion, 182 void CapturePictureOnImplThread(CompletionEvent* completion,
186 skia::RefPtr<SkPicture>* picture); 183 skia::RefPtr<SkPicture>* picture);
187 void AsValueOnImplThread(CompletionEvent* completion, 184 void AsValueOnImplThread(CompletionEvent* completion,
188 base::DictionaryValue* state) const; 185 base::DictionaryValue* state) const;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 current_resource_update_controller_on_impl_thread_; 244 current_resource_update_controller_on_impl_thread_;
248 245
249 // Set when the next draw should post didCommitAndDrawFrame to the main 246 // Set when the next draw should post didCommitAndDrawFrame to the main
250 // thread. 247 // thread.
251 bool next_frame_is_newly_committed_frame_on_impl_thread_; 248 bool next_frame_is_newly_committed_frame_on_impl_thread_;
252 249
253 bool render_vsync_enabled_; 250 bool render_vsync_enabled_;
254 251
255 bool inside_draw_; 252 bool inside_draw_;
256 253
257 base::TimeDelta total_commit_time_;
258 size_t total_commit_count_;
259
260 bool defer_commits_; 254 bool defer_commits_;
261 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; 255 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_;
262 256
263 base::TimeTicks smoothness_takes_priority_expiration_time_; 257 base::TimeTicks smoothness_takes_priority_expiration_time_;
264 bool renew_tree_priority_on_impl_thread_pending_; 258 bool renew_tree_priority_on_impl_thread_pending_;
265 }; 259 };
266 260
267 } // namespace cc 261 } // namespace cc
268 262
269 #endif // CC_TREES_THREAD_PROXY_H_ 263 #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