OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/public/browser/compositor_util.h" | 5 #include "content/browser/gpu/compositor_util.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "content/public/browser/gpu_data_manager.h" | 9 #include "content/public/browser/gpu_data_manager.h" |
10 #include "content/public/common/content_constants.h" | 10 #include "content/public/common/content_constants.h" |
11 #include "content/public/common/content_switches.h" | 11 #include "content/public/common/content_switches.h" |
12 #include "gpu/config/gpu_feature_type.h" | 12 #include "gpu/config/gpu_feature_type.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 108 |
109 // Force compositing is enabled in both the force compositing | 109 // Force compositing is enabled in both the force compositing |
110 // and threaded compositing mode field trials. | 110 // and threaded compositing mode field trials. |
111 return trial && | 111 return trial && |
112 (trial->group_name() == | 112 (trial->group_name() == |
113 kGpuCompositingFieldTrialForceCompositingEnabledName || | 113 kGpuCompositingFieldTrialForceCompositingEnabledName || |
114 trial->group_name() == kGpuCompositingFieldTrialThreadEnabledName); | 114 trial->group_name() == kGpuCompositingFieldTrialThreadEnabledName); |
115 } | 115 } |
116 | 116 |
117 } // namespace content | 117 } // namespace content |
OLD | NEW |