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

Unified Diff: cc/layer_tree_host_unittest_context.cc

Issue 11777025: cc: Implement DelegatingRender::drawFrame() method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for-landing Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layer_tree_host_unittest_animation.cc ('k') | cc/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_unittest_context.cc
diff --git a/cc/layer_tree_host_unittest_context.cc b/cc/layer_tree_host_unittest_context.cc
index ac267c0254997363f75f3b4ca1cad80fb3f89676..ee57fc8fb56d85112feb236e693e052dcfedcb15 100644
--- a/cc/layer_tree_host_unittest_context.cc
+++ b/cc/layer_tree_host_unittest_context.cc
@@ -690,7 +690,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>());
@@ -735,7 +735,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.
« no previous file with comments | « cc/layer_tree_host_unittest_animation.cc ('k') | cc/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698