| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_VIZ_COMMON_FEATURES_H_ |
| #define COMPONENTS_VIZ_COMMON_FEATURES_H_ |
| |
| #include "base/feature_list.h" |
| #include "base/metrics/field_trial_params.h" |
| #include "base/optional.h" |
| #include "build/build_config.h" |
| #include "components/viz/common/viz_common_export.h" |
| |
| |
| namespace features { |
| |
| VIZ_COMMON_EXPORT extern const base::Feature kAdpf; |
| VIZ_COMMON_EXPORT extern const base::Feature kEnableOverlayPrioritization; |
| VIZ_COMMON_EXPORT extern const base::Feature kUseSkiaRenderer; |
| VIZ_COMMON_EXPORT extern const base::Feature kRecordSkPicture; |
| VIZ_COMMON_EXPORT extern const base::Feature kDisableDeJelly; |
| #if defined(OS_ANDROID) |
| VIZ_COMMON_EXPORT extern const base::Feature kDynamicColorGamut; |
| #endif |
| VIZ_COMMON_EXPORT extern const base::Feature kFastSolidColorDraw; |
| VIZ_COMMON_EXPORT extern const base::Feature kVizFrameSubmissionForWebView; |
| VIZ_COMMON_EXPORT extern const base::Feature kUsePreferredIntervalForVideo; |
| VIZ_COMMON_EXPORT extern const base::Feature kUseRealBuffersForPageFlipTest; |
| #if defined(OS_FUCHSIA) |
| VIZ_COMMON_EXPORT extern const base::Feature kUseSkiaOutputDeviceBufferQueue; |
| #endif |
| VIZ_COMMON_EXPORT extern const base::Feature kWebRtcLogCapturePipeline; |
| #if defined(OS_WIN) |
| VIZ_COMMON_EXPORT extern const base::Feature kUseSetPresentDuration; |
| #endif // OS_WIN |
| #if defined(USE_X11) |
| VIZ_COMMON_EXPORT extern const base::Feature kUseX11Present; |
| #endif |
| VIZ_COMMON_EXPORT extern const base::Feature kWebViewVulkanIntermediateBuffer; |
| VIZ_COMMON_EXPORT extern const base::Feature kUsePlatformDelegatedInk; |
| |
| VIZ_COMMON_EXPORT bool IsAdpfEnabled(); |
| VIZ_COMMON_EXPORT bool IsSimpleFrameRateThrottlingEnabled(); |
| #if defined(OS_ANDROID) |
| VIZ_COMMON_EXPORT bool IsDynamicColorGamutEnabled(); |
| #endif |
| VIZ_COMMON_EXPORT bool IsOverlayPrioritizationEnabled(); |
| VIZ_COMMON_EXPORT bool IsSyncWindowDestructionEnabled(); |
| VIZ_COMMON_EXPORT bool IsUsingFastPathForSolidColorQuad(); |
| VIZ_COMMON_EXPORT bool IsUsingSkiaRenderer(); |
| VIZ_COMMON_EXPORT bool IsUsingVizFrameSubmissionForWebView(); |
| VIZ_COMMON_EXPORT bool IsUsingPreferredIntervalForVideo(); |
| VIZ_COMMON_EXPORT bool IsVizHitTestingDebugEnabled(); |
| VIZ_COMMON_EXPORT bool ShouldUseRealBuffersForPageFlipTest(); |
| VIZ_COMMON_EXPORT bool ShouldWebRtcLogCapturePipeline(); |
| #if defined(OS_WIN) |
| VIZ_COMMON_EXPORT bool ShouldUseSetPresentDuration(); |
| #endif // OS_WIN |
| VIZ_COMMON_EXPORT base::Optional<int> ShouldDrawPredictedInkPoints(); |
| VIZ_COMMON_EXPORT bool ShouldUsePlatformDelegatedInk(); |
| |
| } // namespace features |
| |
| #endif // COMPONENTS_VIZ_COMMON_FEATURES_H_ |