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

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

Issue 16871016: cc: Use BeginFrameArgs (Closed) Base URL: http://git.chromium.org/chromium/src.git@bfargs2
Patch Set: Add an --enable-deadline-scheduler commandline flag. Created 7 years, 4 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
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/time.h" 10 #include "base/time/time.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // LayerTreeHostImplClient implementation 50 // LayerTreeHostImplClient implementation
51 virtual void DidTryInitializeRendererOnImplThread( 51 virtual void DidTryInitializeRendererOnImplThread(
52 bool success, 52 bool success,
53 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; 53 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE;
54 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 54 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
55 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 55 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
56 virtual void BeginFrameOnImplThread(const BeginFrameArgs& args) 56 virtual void BeginFrameOnImplThread(const BeginFrameArgs& args)
57 OVERRIDE {} 57 OVERRIDE {}
58 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 58 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
59 virtual void NotifyReadyToActivate() OVERRIDE;
59 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; 60 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE;
60 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 61 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
61 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; 62 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE;
62 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 63 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
63 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 64 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
64 virtual void PostAnimationEventsToMainThreadOnImplThread( 65 virtual void PostAnimationEventsToMainThreadOnImplThread(
65 scoped_ptr<AnimationEventsVector> events, 66 scoped_ptr<AnimationEventsVector> events,
66 base::Time wall_clock_time) OVERRIDE; 67 base::Time wall_clock_time) OVERRIDE;
67 virtual bool ReduceContentsTextureMemoryOnImplThread( 68 virtual bool ReduceContentsTextureMemoryOnImplThread(
68 size_t limit_bytes, 69 size_t limit_bytes,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 private: 175 private:
175 DebugScopedSetImplThread impl_thread_; 176 DebugScopedSetImplThread impl_thread_;
176 DebugScopedSetMainThreadBlocked main_thread_blocked_; 177 DebugScopedSetMainThreadBlocked main_thread_blocked_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 179 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
179 }; 180 };
180 181
181 } // namespace cc 182 } // namespace cc
182 183
183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 184 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698