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

Side by Side Diff: cc/CCThreadedTest.h

Issue 10956006: Convert CC scheduler logic to use base::TimeTicks/Delta instead of doubles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased 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
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | cc/CCThreadedTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CCThreadedTest_h 5 #ifndef CCThreadedTest_h
6 #define CCThreadedTest_h 6 #define CCThreadedTest_h
7 7
8 #include "CCLayerTreeHost.h" 8 #include "CCLayerTreeHost.h"
9 #include "CCLayerTreeHostImpl.h" 9 #include "CCLayerTreeHostImpl.h"
10 #include "CCScopedThreadProxy.h" 10 #include "CCScopedThreadProxy.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 virtual void commitComplete(); 149 virtual void commitComplete();
150 virtual bool prepareToDraw(FrameData&); 150 virtual bool prepareToDraw(FrameData&);
151 virtual void drawLayers(const FrameData&); 151 virtual void drawLayers(const FrameData&);
152 152
153 // Make these public. 153 // Make these public.
154 typedef Vector<cc::CCLayerImpl*> CCLayerList; 154 typedef Vector<cc::CCLayerImpl*> CCLayerList;
155 using CCLayerTreeHostImpl::calculateRenderSurfaceLayerList; 155 using CCLayerTreeHostImpl::calculateRenderSurfaceLayerList;
156 156
157 protected: 157 protected:
158 virtual void animateLayers(double monotonicTime, double wallClockTime); 158 virtual void animateLayers(double monotonicTime, double wallClockTime);
159 virtual double lowFrequencyAnimationInterval() const; 159 virtual base::TimeDelta lowFrequencyAnimationInterval() const;
160 160
161 private: 161 private:
162 MockLayerTreeHostImpl(TestHooks*, const cc::CCLayerTreeSettings&, cc::CCLaye rTreeHostImplClient*); 162 MockLayerTreeHostImpl(TestHooks*, const cc::CCLayerTreeSettings&, cc::CCLaye rTreeHostImplClient*);
163 163
164 TestHooks* m_testHooks; 164 TestHooks* m_testHooks;
165 }; 165 };
166 166
167 class CompositorFakeWebGraphicsContext3DWithTextureTracking : public WebKit::Com positorFakeWebGraphicsContext3D { 167 class CompositorFakeWebGraphicsContext3DWithTextureTracking : public WebKit::Com positorFakeWebGraphicsContext3D {
168 public: 168 public:
169 static PassOwnPtr<CompositorFakeWebGraphicsContext3DWithTextureTracking> cre ate(Attributes); 169 static PassOwnPtr<CompositorFakeWebGraphicsContext3DWithTextureTracking> cre ate(Attributes);
(...skipping 25 matching lines...) Expand all
195 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ 195 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \
196 { \ 196 { \
197 runTest(false); \ 197 runTest(false); \
198 } \ 198 } \
199 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ 199 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \
200 { \ 200 { \
201 runTest(true); \ 201 runTest(true); \
202 } 202 }
203 203
204 #endif // CCThreadedTest_h 204 #endif // CCThreadedTest_h
OLDNEW
« no previous file with comments | « cc/CCThreadProxy.cpp ('k') | cc/CCThreadedTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698