diff options
author | simonhong@chromium.org <simonhong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-12 04:26:02 +0000 |
---|---|---|
committer | simonhong@chromium.org <simonhong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-12 04:26:02 +0000 |
commit | 30d82149616dafe805d5fb22b1ddfcddfeee5a22 (patch) | |
tree | 7cb1d3ddc1559fd6ea094542343c768968433b67 /cc/test/layer_tree_test.cc | |
parent | 370948a602ec072f7f5f0f6c285c88f49c4abd15 (diff) | |
download | chromium_src-30d82149616dafe805d5fb22b1ddfcddfeee5a22.zip chromium_src-30d82149616dafe805d5fb22b1ddfcddfeee5a22.tar.gz chromium_src-30d82149616dafe805d5fb22b1ddfcddfeee5a22.tar.bz2 |
cc: Unify use of DidSwapBuffers() and did_request_swap
Use OutputSurface::DidSwapBuffers() as the source of whether
we swapped or not.
R=brianderson@chromium.org
BUG=363414
TEST=cc_unittests
Review URL: https://codereview.chromium.org/246753008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269738 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_test.cc')
-rw-r--r-- | cc/test/layer_tree_test.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc index 60e8035..2a0762d 100644 --- a/cc/test/layer_tree_test.cc +++ b/cc/test/layer_tree_test.cc @@ -35,10 +35,10 @@ TestHooks::TestHooks() {} TestHooks::~TestHooks() {} -DrawSwapReadbackResult::DrawResult TestHooks::PrepareToDrawOnThread( +DrawResult TestHooks::PrepareToDrawOnThread( LayerTreeHostImpl* host_impl, LayerTreeHostImpl::FrameData* frame_data, - DrawSwapReadbackResult::DrawResult draw_result) { + DrawResult draw_result) { return draw_result; } @@ -108,10 +108,9 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl { } } - virtual DrawSwapReadbackResult::DrawResult PrepareToDraw( - FrameData* frame, - const gfx::Rect& damage_rect) OVERRIDE { - DrawSwapReadbackResult::DrawResult draw_result = + virtual DrawResult PrepareToDraw(FrameData* frame, + const gfx::Rect& damage_rect) OVERRIDE { + DrawResult draw_result = LayerTreeHostImpl::PrepareToDraw(frame, damage_rect); return test_hooks_->PrepareToDrawOnThread(this, frame, draw_result); } |