Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / browser / gpu / compositor_util.h
blob3ce396e384b14bd115d2eedc22c95afe990147b5
1 // Copyright 2013 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.
5 #ifndef CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
8 #include "base/values.h"
9 #include "content/common/content_export.h"
11 namespace content {
13 // Note: When adding a function here, please make sure the logic is not
14 // duplicated in the renderer.
16 // Returns true if the virtual viewport model of pinch-to-zoom is on (via
17 // flags, or platform default).
18 CONTENT_EXPORT bool IsPinchVirtualViewportEnabled();
20 // Returns true if delegated-renderer is on (via flags, or platform default).
21 CONTENT_EXPORT bool IsDelegatedRendererEnabled();
23 // Returns true if impl-side painting is on (via flags, or platform default)
24 // for the renderer.
25 CONTENT_EXPORT bool IsImplSidePaintingEnabled();
27 // Returns true if gpu rasterization is on (via flags) for the renderer.
28 CONTENT_EXPORT bool IsGpuRasterizationEnabled();
30 // Returns true if force-gpu-rasterization is on (via flags) for the renderer.
31 CONTENT_EXPORT bool IsForceGpuRasterizationEnabled();
33 CONTENT_EXPORT base::Value* GetFeatureStatus();
34 CONTENT_EXPORT base::Value* GetProblems();
35 CONTENT_EXPORT base::Value* GetDriverBugWorkarounds();
37 } // namespace content
39 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_