Commit eca64db6 authored by Xu Xing's avatar Xu Xing Committed by Commit Bot

viz: Enable SkiaRenderer layout test

To run layout test over SkiaRenderer, need to add flag --additional-driver-flag=--use-skia-renderer.

BUG=820356

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel
Change-Id: Ic289b19cda9cfcb96bf38217eb20b890bb808f5a
Reviewed-on: https://chromium-review.googlesource.com/1001872Reviewed-by: default avatarweiliangc <weiliangc@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Xing Xu <xing.xu@intel.com>
Cr-Commit-Position: refs/heads/master@{#549539}
parent 765d5a78
......@@ -2755,6 +2755,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kUseGL,
switches::kUseGpuInTests,
switches::kUseMobileUserAgent,
switches::kUseSkiaRenderer,
switches::kV,
switches::kVideoThreads,
switches::kVideoUnderflowThresholdMs,
......
......@@ -54,6 +54,7 @@
#include "third_party/blink/public/platform/web_input_event.h"
#include "third_party/blink/public/platform/web_rect.h"
#include "third_party/blink/public/web/web_view.h"
#include "ui/base/ui_base_switches.h"
#include "ui/events/blink/blink_event_util.h"
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/icc_profile.h"
......@@ -336,6 +337,8 @@ class LayoutTestDependenciesImpl : public LayoutTestDependencies,
// Keep texture sizes exactly matching the bounds of the RenderPass to avoid
// floating point badness in texcoords.
renderer_settings.dont_round_texture_sizes_for_pixel_tests = true;
renderer_settings.use_skia_renderer =
cmd->HasSwitch(switches::kUseSkiaRenderer);
constexpr bool disable_display_vsync = false;
constexpr double refresh_rate = 60.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment