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

Unified Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 2503203002: Revert "Getting rid of DelegatedFrameData" (Closed)
Patch Set: Created 4 years, 1 month 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/trees/layer_tree_host_unittest.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_context.cc
diff --git a/cc/trees/layer_tree_host_unittest_context.cc b/cc/trees/layer_tree_host_unittest_context.cc
index 3a2187e93a4c8cbe4faf3cbb61d3c8e3fcd75a5a..f41f18f9689c8335a93a7cde970de9fbdd13d6ae 100644
--- a/cc/trees/layer_tree_host_unittest_context.cc
+++ b/cc/trees/layer_tree_host_unittest_context.cc
@@ -880,6 +880,24 @@ class LayerTreeHostContextTestDontUseLostResources
void SetupTree() override {
gpu::gles2::GLES2Interface* gl = child_context_provider_->ContextGL();
+ std::unique_ptr<DelegatedFrameData> frame_data(new DelegatedFrameData);
+
+ std::unique_ptr<RenderPass> pass_for_quad = RenderPass::Create();
+ pass_for_quad->SetNew(
+ // AppendOneOfEveryQuadType() makes a RenderPass quad with this id.
+ RenderPassId(2, 1), gfx::Rect(0, 0, 10, 10), gfx::Rect(0, 0, 10, 10),
+ gfx::Transform());
+
+ std::unique_ptr<RenderPass> pass = RenderPass::Create();
+ pass->SetNew(RenderPassId(1, 1), gfx::Rect(0, 0, 10, 10),
+ gfx::Rect(0, 0, 10, 10), gfx::Transform());
+ gpu::SyncToken mailbox_sync_token;
+ AddOneOfEveryQuadType(pass.get(), child_resource_provider_.get(),
+ RenderPassId(2, 1), &mailbox_sync_token);
+
+ frame_data->render_pass_list.push_back(std::move(pass_for_quad));
+ frame_data->render_pass_list.push_back(std::move(pass));
+
ResourceId resource = child_resource_provider_->CreateResource(
gfx::Size(4, 4), ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888,
gfx::ColorSpace());
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | components/exo/surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698