1a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# Copyright 2014 The Chromium Authors. All rights reserved.
2a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be
3a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)# found in the LICENSE file.
4a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)
5a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)def CustomizeBrowserOptionsForFastPath(options):
6a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  """Enables flags needed for bleeding edge rendering fast paths."""
7a1401311d1ab56c4ed0a474bd38c108f75cb0cd9Torne (Richard Coles)  options.AppendExtraBrowserArgs('--enable-bleeding-edge-rendering-fast-paths')
85c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
91320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tuccidef CustomizeBrowserOptionsForSoftwareRasterization(options):
101320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  """Enables flags needed for forced software rasterization."""
111320f92c476a1ad9d19dba2a48c72b75566198e9Primiano Tucci  options.AppendExtraBrowserArgs('--disable-gpu-rasterization')
125c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu
135c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liudef CustomizeBrowserOptionsForGpuRasterization(options):
145c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  """Enables flags needed for forced GPU rasterization using Ganesh."""
155c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  options.AppendExtraBrowserArgs('--enable-threaded-compositing')
165c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  options.AppendExtraBrowserArgs('--enable-impl-side-painting')
175c02ac1a9c1b504631c0a3d2b6e737b5d738bae1Bo Liu  options.AppendExtraBrowserArgs('--force-gpu-rasterization')
18