diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 23:10:50 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-15 23:10:50 +0000 |
commit | 2aae9679f1d9b29d6429c6029c2fa23934c17136 (patch) | |
tree | e68c9e06fa5c75316a00a40501f1c942ad1c3534 /cc/test/layer_tree_test.cc | |
parent | 7f13f0b1cddc9743da6c315dd1d049aebad3a258 (diff) | |
download | chromium_src-2aae9679f1d9b29d6429c6029c2fa23934c17136.zip chromium_src-2aae9679f1d9b29d6429c6029c2fa23934c17136.tar.gz chromium_src-2aae9679f1d9b29d6429c6029c2fa23934c17136.tar.bz2 |
Remove CompositeAndReadback from LayerTreeHost(Impl) and the Proxys.
R=brianderson, enne
BUG=251936
Review URL: https://codereview.chromium.org/279013002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/layer_tree_test.cc')
-rw-r--r-- | cc/test/layer_tree_test.cc | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc index 2a0762d..8a80f89 100644 --- a/cc/test/layer_tree_test.cc +++ b/cc/test/layer_tree_test.cc @@ -108,10 +108,8 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl { } } - virtual DrawResult PrepareToDraw(FrameData* frame, - const gfx::Rect& damage_rect) OVERRIDE { - DrawResult draw_result = - LayerTreeHostImpl::PrepareToDraw(frame, damage_rect); + virtual DrawResult PrepareToDraw(FrameData* frame) OVERRIDE { + DrawResult draw_result = LayerTreeHostImpl::PrepareToDraw(frame); return test_hooks_->PrepareToDrawOnThread(this, frame, draw_result); } @@ -417,12 +415,6 @@ void LayerTreeTest::PostSetNeedsUpdateLayersToMainThread() { main_thread_weak_ptr_)); } -void LayerTreeTest::PostReadbackToMainThread() { - main_task_runner_->PostTask( - FROM_HERE, - base::Bind(&LayerTreeTest::DispatchReadback, main_thread_weak_ptr_)); -} - void LayerTreeTest::PostSetNeedsRedrawToMainThread() { main_task_runner_->PostTask(FROM_HERE, base::Bind(&LayerTreeTest::DispatchSetNeedsRedraw, @@ -548,15 +540,6 @@ void LayerTreeTest::DispatchSetNeedsUpdateLayers() { layer_tree_host_->SetNeedsUpdateLayers(); } -void LayerTreeTest::DispatchReadback() { - DCHECK(!proxy() || proxy()->IsMainThread()); - - if (layer_tree_host_) { - char pixels[4]; - layer_tree_host()->CompositeAndReadback(&pixels, gfx::Rect(0, 0, 1, 1)); - } -} - void LayerTreeTest::DispatchSetNeedsRedraw() { DCHECK(!proxy() || proxy()->IsMainThread()); |