| Index: cc/base/switches.cc
|
| diff --git a/cc/base/switches.cc b/cc/base/switches.cc
|
| index 752abc607729186d3090c70a75c2e1c80610b949..370d411a9ffe149f3f942a7911e2f27e76edf95f 100644
|
| --- a/cc/base/switches.cc
|
| +++ b/cc/base/switches.cc
|
| @@ -171,6 +171,7 @@ bool IsLCDTextEnabled() {
|
| }
|
|
|
| namespace {
|
| +
|
| bool CheckImplSidePaintingStatus() {
|
| const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
|
|
| @@ -185,6 +186,12 @@ bool CheckImplSidePaintingStatus() {
|
| return false;
|
| #endif
|
| }
|
| +
|
| +bool CheckGPURasterizationStatus() {
|
| + const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| + return command_line.HasSwitch(cc::switches::kEnableGPURasterization);
|
| +}
|
| +
|
| } // namespace
|
|
|
| bool IsImplSidePaintingEnabled() {
|
| @@ -193,8 +200,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() {
|
|
|