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

Side by Side Diff: cc/layer_tree_host_impl_unittest.cc

Issue 12217105: cc: Check for completed raster tasks at interval. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState ChangedCalled = true; } 94 virtual void onCanDrawStateChanged(bool canDraw) OVERRIDE { m_onCanDrawState ChangedCalled = true; }
95 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE { m_ hasPendingTree = hasPendingTree; } 95 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) OVERRIDE { m_ hasPendingTree = hasPendingTree; }
96 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr ue; } 96 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_didRequestRedraw = tr ue; }
97 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE { m_d idUploadVisibleHighResolutionTile = true; } 97 virtual void didUploadVisibleHighResolutionTileOnImplThread() OVERRIDE { m_d idUploadVisibleHighResolutionTile = true; }
98 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr ue; } 98 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_didRequestCommit = tr ue; }
99 virtual void setNeedsManageTilesOnImplThread() OVERRIDE { } 99 virtual void setNeedsManageTilesOnImplThread() OVERRIDE { }
100 virtual void setNeedsCheckForCompletedRasterTasksOnImplThread() 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 { }
104 virtual bool isInsideDraw() OVERRIDE { return false; } 105 virtual bool isInsideDraw() OVERRIDE { return false; }
105 virtual void renewTreePriority() OVERRIDE { } 106 virtual void renewTreePriority() OVERRIDE { }
106 107
107 void setReduceMemoryResult(bool reduceMemoryResult) { m_reduceMemoryResult = reduceMemoryResult; } 108 void setReduceMemoryResult(bool reduceMemoryResult) { m_reduceMemoryResult = reduceMemoryResult; }
108 109
109 void createLayerTreeHost(bool partialSwap, scoped_ptr<OutputSurface> outputS urface) 110 void createLayerTreeHost(bool partialSwap, scoped_ptr<OutputSurface> outputS urface)
(...skipping 4224 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/raster_worker_pool.cc » ('j') | cc/raster_worker_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698