OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 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. | |
4 | |
5 #include "base/command_line.h" | |
6 #include "cc/switches.h" | |
7 | |
8 namespace cc { | |
9 | |
10 bool IsImplSidePaintingEnabled(const CommandLine *cl) | |
11 { | |
12 // The disable flag takes precedence over the enable flag. | |
13 if (cl->HasSwitch(cc::switches::kDisableImplSidePainting)) | |
14 return false; | |
15 | |
16 return cl->HasSwitch(cc::switches::kEnableImplSidePainting); | |
17 } | |
18 | |
19 } // namespace cc | |
OLD | NEW |