| OLD | NEW |
| 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 Loading... |
| 84 } | 84 } |
| 85 | 85 |
| 86 virtual void TearDown() | 86 virtual void TearDown() |
| 87 { | 87 { |
| 88 } | 88 } |
| 89 | 89 |
| 90 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } | 90 virtual void didLoseOutputSurfaceOnImplThread() OVERRIDE { } |
| 91 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } | 91 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { } |
| 92 virtual void onVSyncParametersChanged(base::TimeTicks, base::TimeDelta) OVER
RIDE { } | 92 virtual void onVSyncParametersChanged(base::TimeTicks, base::TimeDelta) OVER
RIDE { } |
| 93 virtual void didVSync(base::TimeTicks) OVERRIDE { } | 93 virtual void didVSync(base::TimeTicks) OVERRIDE { } |
| 94 virtual void didReceiveLastInputEventForVSync() 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 setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr
ue; } | 98 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr
ue; } |
| 98 virtual void setNeedsManageTilesOnImplThread() OVERRIDE { } | 99 virtual void setNeedsManageTilesOnImplThread() OVERRIDE { } |
| 99 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE { } | 100 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio
nEventsVector>, base::Time wallClockTime) OVERRIDE { } |
| 100 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE { return m_reduceMemoryResult; } | 101 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int
priorityCutoff) OVERRIDE { return m_reduceMemoryResult; } |
| 101 virtual void sendManagedMemoryStats() OVERRIDE { } | 102 virtual void sendManagedMemoryStats() OVERRIDE { } |
| 102 | 103 |
| 103 void setReduceMemoryResult(bool reduceMemoryResult) { m_reduceMemoryResult =
reduceMemoryResult; } | 104 void setReduceMemoryResult(bool reduceMemoryResult) { m_reduceMemoryResult =
reduceMemoryResult; } |
| (...skipping 4323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4427 gfx::Rect noDamage = gfx::Rect(m_hostImpl->deviceViewportSize()); | 4428 gfx::Rect noDamage = gfx::Rect(m_hostImpl->deviceViewportSize()); |
| 4428 drawFrameAndTestDamage(noDamage); | 4429 drawFrameAndTestDamage(noDamage); |
| 4429 } | 4430 } |
| 4430 | 4431 |
| 4431 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests, | 4432 INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests, |
| 4432 LayerTreeHostImplTest, | 4433 LayerTreeHostImplTest, |
| 4433 ::testing::Values(false, true)); | 4434 ::testing::Values(false, true)); |
| 4434 | 4435 |
| 4435 } // namespace | 4436 } // namespace |
| 4436 } // namespace cc | 4437 } // namespace cc |
| OLD | NEW |