diff options
author | skaslev@chromium.org <skaslev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 01:24:02 +0000 |
---|---|---|
committer | skaslev@chromium.org <skaslev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-05 01:24:02 +0000 |
commit | 40de48c4a1655c00a9efd6aec04746b9db0cb35b (patch) | |
tree | 7c406ea9598029d1399b0c196270ee3a86b67e7a /cc/base | |
parent | 4f25a44ca1a8a5adb975de321eab3a0ad824d7ad (diff) | |
download | chromium_src-40de48c4a1655c00a9efd6aec04746b9db0cb35b.zip chromium_src-40de48c4a1655c00a9efd6aec04746b9db0cb35b.tar.gz chromium_src-40de48c4a1655c00a9efd6aec04746b9db0cb35b.tar.bz2 |
Added necessary Tile flags for GPU rasterization.
BUG=316685
Review URL: https://codereview.chromium.org/98443005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/base')
-rw-r--r-- | cc/base/switches.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cc/base/switches.cc b/cc/base/switches.cc index 1fe8bce..0db73b1 100644 --- a/cc/base/switches.cc +++ b/cc/base/switches.cc @@ -181,6 +181,12 @@ bool CheckImplSidePaintingStatus() { return false; #endif } + +bool CheckGPURasterizationStatus() { + const CommandLine& command_line = *CommandLine::ForCurrentProcess(); + return command_line.HasSwitch(cc::switches::kEnableGPURasterization); +} + } // namespace bool IsImplSidePaintingEnabled() { @@ -189,8 +195,8 @@ bool IsImplSidePaintingEnabled() { } bool IsGPURasterizationEnabled() { - const CommandLine& command_line = *CommandLine::ForCurrentProcess(); - return command_line.HasSwitch(cc::switches::kEnableGPURasterization); + static bool enabled = CheckGPURasterizationStatus(); + return enabled; } bool IsMapImageEnabled() { |