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

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

Issue 13613003: cc: Make animations tick regardless of drawing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 46 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
47 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 47 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
48 virtual bool CommitPendingForTesting() OVERRIDE; 48 virtual bool CommitPendingForTesting() OVERRIDE;
49 49
50 // LayerTreeHostImplClient implementation 50 // LayerTreeHostImplClient implementation
51 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 51 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
52 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 52 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE;
53 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 53 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
54 base::TimeDelta interval) OVERRIDE {} 54 base::TimeDelta interval) OVERRIDE {}
55 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} 55 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {}
56 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {} 56 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
57 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; 57 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE;
58 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 58 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
59 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 59 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
60 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 60 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
61 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 61 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
62 virtual void PostAnimationEventsToMainThreadOnImplThread( 62 virtual void PostAnimationEventsToMainThreadOnImplThread(
63 scoped_ptr<AnimationEventsVector> events, 63 scoped_ptr<AnimationEventsVector> events,
64 base::Time wall_clock_time) OVERRIDE; 64 base::Time wall_clock_time) OVERRIDE;
65 virtual bool ReduceContentsTextureMemoryOnImplThread( 65 virtual bool ReduceContentsTextureMemoryOnImplThread(
66 size_t limit_bytes, 66 size_t limit_bytes,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 private: 164 private:
165 DebugScopedSetImplThread impl_thread_; 165 DebugScopedSetImplThread impl_thread_;
166 DebugScopedSetMainThreadBlocked main_thread_blocked_; 166 DebugScopedSetMainThreadBlocked main_thread_blocked_;
167 167
168 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 168 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
169 }; 169 };
170 170
171 } // namespace cc 171 } // namespace cc
172 172
173 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 173 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698