summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host_unittest_context.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/layer_tree_host_unittest_context.cc')
-rw-r--r--cc/layer_tree_host_unittest_context.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/cc/layer_tree_host_unittest_context.cc b/cc/layer_tree_host_unittest_context.cc
index 3e0e35c..cf9da18 100644
--- a/cc/layer_tree_host_unittest_context.cc
+++ b/cc/layer_tree_host_unittest_context.cc
@@ -691,7 +691,7 @@ class LayerTreeHostContextTestDontUseLostResources :
gfx::Rect(0, 0, 10, 10),
gfx::Rect(0, 0, 10, 10),
gfx::Transform());
- pass->AppendOneOfEveryQuadType(resource_provider);
+ pass->AppendOneOfEveryQuadType(resource_provider, RenderPass::Id(2, 1));
ScopedPtrVector<RenderPass> pass_list;
pass_list.push_back(pass_for_quad.PassAs<RenderPass>());
@@ -736,7 +736,10 @@ class LayerTreeHostContextTestDontUseLostResources :
}
}
- virtual bool prepareToDrawOnThread(LayerTreeHostImpl* host_impl) {
+ virtual bool prepareToDrawOnThread(
+ LayerTreeHostImpl* host_impl,
+ LayerTreeHostImpl::FrameData& frame,
+ bool result) OVERRIDE {
if (host_impl->activeTree()->source_frame_number() == 2) {
// Lose the context during draw on the second commit. This will cause
// a third commit to recover.