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

Side by Side Diff: cc/single_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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_SINGLE_THREAD_PROXY_H_
6 #define CC_SINGLE_THREAD_PROXY_H_ 6 #define CC_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void acquireLayerTextures() OVERRIDE { } 45 virtual void acquireLayerTextures() OVERRIDE { }
46 virtual void forceSerializeOnSwapBuffers() OVERRIDE; 46 virtual void forceSerializeOnSwapBuffers() OVERRIDE;
47 virtual bool commitPendingForTesting() OVERRIDE; 47 virtual bool commitPendingForTesting() OVERRIDE;
48 virtual skia::RefPtr<SkPicture> capturePicture() OVERRIDE; 48 virtual skia::RefPtr<SkPicture> capturePicture() 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, base::TimeDe lta interval) OVERRIDE { } 53 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) OVERRIDE { }
54 virtual void didVSync(base::TimeTicks frameTime) OVERRIDE { } 54 virtual void didVSync(base::TimeTicks frameTime) OVERRIDE { }
55 virtual void didReceiveLastInputEventForVSync() OVERRIDE { }
55 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } 56 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { }
56 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE; 57 virtual void onHasPendingTreeStateChanged(bool havePendingTree) OVERRIDE;
57 virtual void setNeedsRedrawOnImplThread() OVERRIDE; 58 virtual void setNeedsRedrawOnImplThread() OVERRIDE;
58 virtual void setNeedsCommitOnImplThread() OVERRIDE; 59 virtual void setNeedsCommitOnImplThread() OVERRIDE;
59 virtual void setNeedsManageTilesOnImplThread() OVERRIDE; 60 virtual void setNeedsManageTilesOnImplThread() OVERRIDE;
60 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE; 61 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE;
61 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE; 62 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE;
62 virtual void sendManagedMemoryStats() OVERRIDE; 63 virtual void sendManagedMemoryStats() OVERRIDE;
63 64
64 // Called by the legacy path where RenderWidget does the scheduling. 65 // Called by the legacy path where RenderWidget does the scheduling.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 { 149 {
149 } 150 }
150 private: 151 private:
151 DebugScopedSetImplThread m_implThread; 152 DebugScopedSetImplThread m_implThread;
152 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; 153 DebugScopedSetMainThreadBlocked m_mainThreadBlocked;
153 }; 154 };
154 155
155 } // namespace cc 156 } // namespace cc
156 157
157 #endif // CC_SINGLE_THREAD_PROXY_H_ 158 #endif // CC_SINGLE_THREAD_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698