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

Side by Side Diff: cc/layer_tree_host_impl_unittest.cc

Issue 11833009: Provide a vsync notification to the renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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/layer_tree_host_impl.cc ('k') | cc/layer_tree_host_unittest.cc » ('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 #include "cc/layer_tree_host_impl.h" 5 #include "cc/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 m_hostImpl->setViewportSize(gfx::Size(10, 10), gfx::Size(10, 10)); 84 m_hostImpl->setViewportSize(gfx::Size(10, 10), gfx::Size(10, 10));
85 } 85 }
86 86
87 virtual void TearDown() 87 virtual void TearDown()
88 { 88 {
89 } 89 }
90 90
91 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } 91 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { }
92 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } 92 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { }
93 virtual void onVSyncParametersChanged(base::TimeTicks, base::TimeDelta) OVER RIDE { } 93 virtual void onVSyncParametersChanged(base::TimeTicks, base::TimeDelta) OVER RIDE { }
94 virtual void didVSync(base::TimeTicks) OVERRIDE { }
94 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState ChangedCalled = true; } 95 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState ChangedCalled = true; }
95 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE { m_ hasPendingTree = hasPendingTree; } 96 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE { m_ hasPendingTree = hasPendingTree; }
96 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr ue; } 97 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr ue; }
97 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE { m_d idUploadVisibleHighResolutionTile = true; } 98 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE { m_d idUploadVisibleHighResolutionTile = true; }
98 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr ue; } 99 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr ue; }
99 virtual void setNeedsManageTilesOnImplThread() OVERRIDE { } 100 virtual void setNeedsManageTilesOnImplThread() OVERRIDE { }
100 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE { } 101 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) OVERRIDE { }
101 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE { return m_reduceMemoryResult; } 102 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) OVERRIDE { return m_reduceMemoryResult; }
102 virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE { } 103 virtual void reduceWastedContentsTextureMemoryOnImplThread() OVERRIDE { }
103 virtual void sendManagedMemoryStats() OVERRIDE { } 104 virtual void sendManagedMemoryStats() OVERRIDE { }
(...skipping 4230 matching lines...) Expand 10 before | Expand all | Expand 10 after
4334 m_hostImpl->didDrawAllLayers(frame); 4335 m_hostImpl->didDrawAllLayers(frame);
4335 } 4336 }
4336 } 4337 }
4337 4338
4338 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests, 4339 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests,
4339 LayerTreeHostImplTest, 4340 LayerTreeHostImplTest,
4340 ::testing::Values(false, true)); 4341 ::testing::Values(false, true));
4341 4342
4342 } // namespace 4343 } // namespace
4343 } // namespace cc 4344 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl.cc ('k') | cc/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698