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

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

Issue 12674030: cc: Hook vsync time source to output surface (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review tweaks. 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest.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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 49 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
50 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 50 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
51 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 51 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
52 virtual bool CommitPendingForTesting() OVERRIDE; 52 virtual bool CommitPendingForTesting() OVERRIDE;
53 53
54 // LayerTreeHostImplClient implementation 54 // LayerTreeHostImplClient implementation
55 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 55 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
56 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 56 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE;
57 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 57 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
58 base::TimeDelta interval) OVERRIDE {} 58 base::TimeDelta interval) OVERRIDE {}
59 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {}
59 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {} 60 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {}
60 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; 61 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE;
61 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 62 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
62 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 63 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
63 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 64 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
64 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 65 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
65 virtual void PostAnimationEventsToMainThreadOnImplThread( 66 virtual void PostAnimationEventsToMainThreadOnImplThread(
66 scoped_ptr<AnimationEventsVector> events, 67 scoped_ptr<AnimationEventsVector> events,
67 base::Time wall_clock_time) OVERRIDE; 68 base::Time wall_clock_time) OVERRIDE;
68 virtual bool ReduceContentsTextureMemoryOnImplThread( 69 virtual bool ReduceContentsTextureMemoryOnImplThread(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 private: 171 private:
171 DebugScopedSetImplThread impl_thread_; 172 DebugScopedSetImplThread impl_thread_;
172 DebugScopedSetMainThreadBlocked main_thread_blocked_; 173 DebugScopedSetMainThreadBlocked main_thread_blocked_;
173 174
174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 175 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
175 }; 176 };
176 177
177 } // namespace cc 178 } // namespace cc
178 179
179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 180 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698