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

Side by Side Diff: cc/CCSingleThreadProxy.h

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: correct base Created 8 years, 3 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 CCSingleThreadProxy_h 5 #ifndef CCSingleThreadProxy_h
6 #define CCSingleThreadProxy_h 6 #define CCSingleThreadProxy_h
7 7
8 #include "CCAnimationEvents.h" 8 #include "CCAnimationEvents.h"
9 #include "CCLayerTreeHostImpl.h" 9 #include "CCLayerTreeHostImpl.h"
10 #include "CCProxy.h" 10 #include "CCProxy.h"
(...skipping 28 matching lines...) Expand all
39 virtual bool commitRequested() const OVERRIDE; 39 virtual bool commitRequested() const OVERRIDE;
40 virtual void didAddAnimation() OVERRIDE; 40 virtual void didAddAnimation() OVERRIDE;
41 virtual void start() OVERRIDE; 41 virtual void start() OVERRIDE;
42 virtual void stop() OVERRIDE; 42 virtual void stop() OVERRIDE;
43 virtual size_t maxPartialTextureUpdates() const OVERRIDE { return std::numer ic_limits<size_t>::max(); } 43 virtual size_t maxPartialTextureUpdates() const OVERRIDE { return std::numer ic_limits<size_t>::max(); }
44 virtual void acquireLayerTextures() OVERRIDE { } 44 virtual void acquireLayerTextures() OVERRIDE { }
45 virtual void forceSerializeOnSwapBuffers() OVERRIDE; 45 virtual void forceSerializeOnSwapBuffers() OVERRIDE;
46 46
47 // CCLayerTreeHostImplClient implementation 47 // CCLayerTreeHostImplClient implementation
48 virtual void didLoseContextOnImplThread() OVERRIDE { } 48 virtual void didLoseContextOnImplThread() OVERRIDE { }
49 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { ASSERT_NOT_REACH ED(); } 49 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
50 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE { } 50 virtual void onVSyncParametersChanged(double monotonicTimebase, double inter valInSeconds) OVERRIDE { }
51 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { } 51 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { }
52 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_layerTreeHost->schedu leComposite(); } 52 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_layerTreeHost->schedu leComposite(); }
53 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_layerTreeHost->schedu leComposite(); } 53 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_layerTreeHost->schedu leComposite(); }
54 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) OVERRIDE; 54 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat ionEventsVector>, double wallClockTime) OVERRIDE;
55 55
56 // Called by the legacy path where RenderWidget does the scheduling. 56 // Called by the legacy path where RenderWidget does the scheduling.
57 void compositeImmediately(); 57 void compositeImmediately();
58 58
59 private: 59 private:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // satisfy assertion checks 121 // satisfy assertion checks
122 class DebugScopedSetImplThreadAndMainThreadBlocked { 122 class DebugScopedSetImplThreadAndMainThreadBlocked {
123 private: 123 private:
124 DebugScopedSetImplThread m_implThread; 124 DebugScopedSetImplThread m_implThread;
125 DebugScopedSetMainThreadBlocked m_mainThreadBlocked; 125 DebugScopedSetMainThreadBlocked m_mainThreadBlocked;
126 }; 126 };
127 127
128 } // namespace WebCore 128 } // namespace WebCore
129 129
130 #endif 130 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698