blob: ef5a8f5bea41005135b2b802fcb3caad6f0698fb [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
def CustomizeBrowserOptionsForSoftwareRasterization(options):
"""Enables flags needed for forced software rasterization."""
options.AppendExtraBrowserArgs('--disable-gpu-rasterization')
def CustomizeBrowserOptionsForGpuRasterization(options):
"""Enables flags needed for forced GPU rasterization using Ganesh."""
options.AppendExtraBrowserArgs('--enable-threaded-compositing')
options.AppendExtraBrowserArgs('--enable-impl-side-painting')
options.AppendExtraBrowserArgs('--force-gpu-rasterization')
def CustomizeBrowserOptionsForSyncScrolling(options):
"""Enables flags needed for synchronous (main thread) scrolling."""
options.AppendExtraBrowserArgs('--disable-threaded-scrolling')