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

Unified Diff: content/test/layouttest_support.cc

Issue 2613303002: android: Use ScreenInfo to calculate tile size (Closed)
Patch Set: delete blimp Created 3 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 | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index fefd00efdf062bb27b479e32d044f8641eb3f324..c23f1a1eb93fe2d1737c1dd66e5177f3bf1607bd 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -26,6 +26,7 @@
#include "content/common/renderer.mojom.h"
#include "content/common/site_isolation_policy.h"
#include "content/public/common/page_state.h"
+#include "content/public/common/screen_info.h"
#include "content/public/renderer/renderer_gamepad_provider.h"
#include "content/renderer/fetchers/manifest_fetcher.h"
#include "content/renderer/gpu/render_widget_compositor.h"
@@ -347,9 +348,11 @@ class LayoutTestDependenciesImpl : public LayoutTestDependencies,
if (!task_runner)
task_runner = base::ThreadTaskRunnerHandle::Get().get();
+ ScreenInfo dummy_screen_info;
cc::LayerTreeSettings settings =
RenderWidgetCompositor::GenerateLayerTreeSettings(
- *base::CommandLine::ForCurrentProcess(), deps, 1.f);
+ *base::CommandLine::ForCurrentProcess(), deps, 1.f,
+ dummy_screen_info);
auto compositor_frame_sink = base::MakeUnique<cc::TestCompositorFrameSink>(
std::move(compositor_context_provider),
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698