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

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

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 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
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 43 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
44 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 44 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
45 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 45 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
46 virtual bool CommitPendingForTesting() OVERRIDE; 46 virtual bool CommitPendingForTesting() OVERRIDE;
47 47
48 // LayerTreeHostImplClient implementation 48 // LayerTreeHostImplClient implementation
49 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 49 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
50 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 50 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
51 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 51 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
52 base::TimeDelta interval) OVERRIDE {} 52 base::TimeDelta interval) OVERRIDE {}
53 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} 53 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time)
54 OVERRIDE {}
54 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 55 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
55 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; 56 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE;
56 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 57 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
57 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; 58 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE;
58 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 59 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
59 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 60 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
60 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 61 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
61 virtual void PostAnimationEventsToMainThreadOnImplThread( 62 virtual void PostAnimationEventsToMainThreadOnImplThread(
62 scoped_ptr<AnimationEventsVector> events, 63 scoped_ptr<AnimationEventsVector> events,
63 base::Time wall_clock_time) OVERRIDE; 64 base::Time wall_clock_time) OVERRIDE;
64 virtual bool ReduceContentsTextureMemoryOnImplThread( 65 virtual bool ReduceContentsTextureMemoryOnImplThread(
65 size_t limit_bytes, 66 size_t limit_bytes,
66 int priority_cutoff) OVERRIDE; 67 int priority_cutoff) OVERRIDE;
67 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE; 68 virtual void ReduceWastedContentsTextureMemoryOnImplThread() OVERRIDE;
68 virtual void SendManagedMemoryStats() OVERRIDE; 69 virtual void SendManagedMemoryStats() OVERRIDE;
69 virtual bool IsInsideDraw() OVERRIDE; 70 virtual bool IsInsideDraw() OVERRIDE;
70 virtual void RenewTreePriority() OVERRIDE {} 71 virtual void RenewTreePriority() OVERRIDE {}
71 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) 72 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
72 OVERRIDE {} 73 OVERRIDE {}
73 virtual void DidReceiveLastInputEventForVSync(base::TimeTicks frame_time) 74 virtual void DidReceiveLastInputEventForBeginFrameOnImplThread(
74 OVERRIDE {} 75 base::TimeTicks frame_time) OVERRIDE {}
75 virtual void DidActivatePendingTree() OVERRIDE {} 76 virtual void DidActivatePendingTree() OVERRIDE {}
76 77
77 // Called by the legacy path where RenderWidget does the scheduling. 78 // Called by the legacy path where RenderWidget does the scheduling.
78 void CompositeImmediately(base::TimeTicks frame_begin_time); 79 void CompositeImmediately(base::TimeTicks frame_begin_time);
79 80
80 private: 81 private:
81 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host); 82 explicit SingleThreadProxy(LayerTreeHost* layer_tree_host);
82 83
83 void OnOutputSurfaceInitializeAttempted(bool success); 84 void OnOutputSurfaceInitializeAttempted(bool success);
84 bool CommitAndComposite(base::TimeTicks frame_begin_time, 85 bool CommitAndComposite(base::TimeTicks frame_begin_time,
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 private: 174 private:
174 DebugScopedSetImplThread impl_thread_; 175 DebugScopedSetImplThread impl_thread_;
175 DebugScopedSetMainThreadBlocked main_thread_blocked_; 176 DebugScopedSetMainThreadBlocked main_thread_blocked_;
176 177
177 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
178 }; 179 };
179 180
180 } // namespace cc 181 } // namespace cc
181 182
182 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698