| OLD | NEW |
| 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_THREAD_PROXY_H_ | 5 #ifndef CC_THREAD_PROXY_H_ |
| 6 #define CC_THREAD_PROXY_H_ | 6 #define CC_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 Loading... |
| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void ManageTilesOnImplThread(); | 164 void ManageTilesOnImplThread(); |
| 166 void SetFullRootLayerDamageOnImplThread(); | 165 void SetFullRootLayerDamageOnImplThread(); |
| 167 void AcquireLayerTexturesForMainThreadOnImplThread( | 166 void AcquireLayerTexturesForMainThreadOnImplThread( |
| 168 CompletionEvent* completion); | 167 CompletionEvent* completion); |
| 169 void RecreateOutputSurfaceOnImplThread( | 168 void RecreateOutputSurfaceOnImplThread( |
| 170 CompletionEvent* completion, | 169 CompletionEvent* completion, |
| 171 scoped_ptr<OutputSurface> output_surface, | 170 scoped_ptr<OutputSurface> output_surface, |
| 172 scoped_refptr<cc::ContextProvider> offscreen_context_provider, | 171 scoped_refptr<cc::ContextProvider> offscreen_context_provider, |
| 173 bool* recreate_succeeded, | 172 bool* recreate_succeeded, |
| 174 RendererCapabilities* capabilities); | 173 RendererCapabilities* capabilities); |
| 175 void RenderingStatsOnImplThread(CompletionEvent* completion, | |
| 176 RenderingStats* stats); | |
| 177 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal( | 174 ScheduledActionDrawAndSwapResult ScheduledActionDrawAndSwapInternal( |
| 178 bool forced_draw); | 175 bool forced_draw); |
| 179 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); | 176 void ForceSerializeOnSwapBuffersOnImplThread(CompletionEvent* completion); |
| 180 void SetNeedsForcedCommitOnImplThread(); | 177 void SetNeedsForcedCommitOnImplThread(); |
| 181 void CheckOutputSurfaceStatusOnImplThread(); | 178 void CheckOutputSurfaceStatusOnImplThread(); |
| 182 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); | 179 void CommitPendingOnImplThreadForTesting(CommitPendingRequest* request); |
| 183 void CapturePictureOnImplThread(CompletionEvent* completion, | 180 void CapturePictureOnImplThread(CompletionEvent* completion, |
| 184 skia::RefPtr<SkPicture>* picture); | 181 skia::RefPtr<SkPicture>* picture); |
| 185 void AsValueOnImplThread(CompletionEvent* completion, | 182 void AsValueOnImplThread(CompletionEvent* completion, |
| 186 base::DictionaryValue* state) const; | 183 base::DictionaryValue* state) const; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 current_resource_update_controller_on_impl_thread_; | 241 current_resource_update_controller_on_impl_thread_; |
| 245 | 242 |
| 246 // Set when the next draw should post didCommitAndDrawFrame to the main | 243 // Set when the next draw should post didCommitAndDrawFrame to the main |
| 247 // thread. | 244 // thread. |
| 248 bool next_frame_is_newly_committed_frame_on_impl_thread_; | 245 bool next_frame_is_newly_committed_frame_on_impl_thread_; |
| 249 | 246 |
| 250 bool render_vsync_enabled_; | 247 bool render_vsync_enabled_; |
| 251 | 248 |
| 252 bool inside_draw_; | 249 bool inside_draw_; |
| 253 | 250 |
| 254 base::TimeDelta total_commit_time_; | |
| 255 size_t total_commit_count_; | |
| 256 | |
| 257 bool defer_commits_; | 251 bool defer_commits_; |
| 258 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; | 252 scoped_ptr<BeginFrameAndCommitState> pending_deferred_commit_; |
| 259 | 253 |
| 260 base::TimeTicks smoothness_takes_priority_expiration_time_; | 254 base::TimeTicks smoothness_takes_priority_expiration_time_; |
| 261 bool renew_tree_priority_on_impl_thread_pending_; | 255 bool renew_tree_priority_on_impl_thread_pending_; |
| 262 }; | 256 }; |
| 263 | 257 |
| 264 } // namespace cc | 258 } // namespace cc |
| 265 | 259 |
| 266 #endif // CC_THREAD_PROXY_H_ | 260 #endif // CC_THREAD_PROXY_H_ |
| OLD | NEW |