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

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: formatting 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
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..5435529edab5b43f24d7a34ce30bba6f04a9ba12 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 =
+ 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), gfx::Rect(0, 0, 50, 50),
boliu 2015/02/24 22:06:22 Use |viewport|
hush (inactive) 2015/02/24 22:19:03 Done.
+ gfx::Rect(0, 0, 50, 50), 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(
« android_webview/browser/test/fake_window.cc ('K') | « android_webview/native/aw_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698