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

Side by Side Diff: cc/thread_proxy.h

Issue 11854013: Use input events to improve vsync scheduling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't set last-input-for-vsync bit on pages with touch handlers. Created 7 years, 11 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_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void acquireLayerTextures() OVERRIDE; 55 virtual void acquireLayerTextures() OVERRIDE;
56 virtual void forceSerializeOnSwapBuffers() OVERRIDE; 56 virtual void forceSerializeOnSwapBuffers() OVERRIDE;
57 virtual bool commitPendingForTesting() OVERRIDE; 57 virtual bool commitPendingForTesting() OVERRIDE;
58 virtual skia::RefPtr<SkPicture> capturePicture() OVERRIDE; 58 virtual skia::RefPtr<SkPicture> capturePicture() OVERRIDE;
59 59
60 // LayerTreeHostImplClient implementation 60 // LayerTreeHostImplClient implementation
61 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE; 61 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE;
62 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE; 62 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE;
63 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE; 63 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE;
64 virtual void didVSync(base::TimeTicks frameTime) OVERRIDE; 64 virtual void didVSync(base::TimeTicks frameTime) OVERRIDE;
65 virtual void didReceiveLastInputEventForVSync() OVERRIDE;
65 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE; 66 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE;
66 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE; 67 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE;
67 virtual void setNeedsRedrawOnImplThread() OVERRIDE; 68 virtual void setNeedsRedrawOnImplThread() OVERRIDE;
68 virtual void setNeedsCommitOnImplThread() OVERRIDE; 69 virtual void setNeedsCommitOnImplThread() OVERRIDE;
69 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; 70 virtual void setNeedsManageTilesOnImplThread() OVERRIDE;
70 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE; 71 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE;
71 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE; 72 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE;
72 virtual void sendManagedMemoryStats() OVERRIDE; 73 virtual void sendManagedMemoryStats() OVERRIDE;
73 74
74 // SchedulerClient implementation 75 // SchedulerClient implementation
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 base::TimeDelta m_totalCommitTime; 196 base::TimeDelta m_totalCommitTime;
196 size_t m_totalCommitCount; 197 size_t m_totalCommitCount;
197 198
198 bool m_deferCommits; 199 bool m_deferCommits;
199 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit; 200 scoped_ptr<BeginFrameAndCommitState> m_pendingDeferredCommit;
200 }; 201 };
201 202
202 } // namespace cc 203 } // namespace cc
203 204
204 #endif // CC_THREAD_PROXY_H_ 205 #endif // CC_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698