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

Unified Diff: content/public/test/test_synchronous_compositor_android.cc

Issue 944053004: OffscreenPreRaster and its plumbings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 5 years, 10 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 | « android_webview/native/aw_settings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_synchronous_compositor_android.cc
diff --git a/content/public/test/test_synchronous_compositor_android.cc b/content/public/test/test_synchronous_compositor_android.cc
index 27ed1243961debf150f9f65ac532f761bca93b29..ecf1a79d107dcbecac76e2a755b0ae2b2023d303 100644
--- a/content/public/test/test_synchronous_compositor_android.cc
+++ b/content/public/test/test_synchronous_compositor_android.cc
@@ -44,7 +44,15 @@ scoped_ptr<cc::CompositorFrame> TestSynchronousCompositor::DemandDrawHw(
gfx::Rect viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) {
DCHECK(hardware_initialized_);
- return nullptr;
+ scoped_ptr<cc::CompositorFrame> compositor_frame =
no sievers 2015/02/25 20:54:36 nit: scoped_ptr<cc::CompositorFrame> compositor_fr
hush (inactive) 2015/02/25 21:12:41 Done.
+ make_scoped_ptr(new cc::CompositorFrame());
+ scoped_ptr<cc::DelegatedFrameData> frame(new cc::DelegatedFrameData);
+ scoped_ptr<cc::RenderPass> root_pass(cc::RenderPass::Create());
+ root_pass->SetNew(cc::RenderPassId(1, 1), viewport, viewport,
+ gfx::Transform());
+ frame->render_pass_list.push_back(root_pass.Pass());
+ compositor_frame->delegated_frame_data = frame.Pass();
+ return compositor_frame.Pass();
}
void TestSynchronousCompositor::ReturnResources(
« no previous file with comments | « android_webview/native/aw_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698