1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 def CustomizeBrowserOptionsForSoftwareRasterization(options
):
6 """Enables flags needed for forced software rasterization."""
7 options
.AppendExtraBrowserArgs('--disable-gpu-rasterization')
9 def CustomizeBrowserOptionsForGpuRasterization(options
):
10 """Enables flags needed for forced GPU rasterization using Ganesh."""
11 options
.AppendExtraBrowserArgs('--enable-threaded-compositing')
12 options
.AppendExtraBrowserArgs('--enable-impl-side-painting')
13 options
.AppendExtraBrowserArgs('--force-gpu-rasterization')
15 def CustomizeBrowserOptionsForSyncScrolling(options
):
16 """Enables flags needed for synchronous (main thread) scrolling."""
17 options
.AppendExtraBrowserArgs('--disable-threaded-scrolling')