IndexedDBFactory now ForceCloses databases.
[chromium-blink-merge.git] / content / browser / gpu / compositor_util.h
blob89329f42f719538e01599db4af54ef07252237ab
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 // Returns true if the threaded compositor is on (via flags or field trial).
14 CONTENT_EXPORT bool IsThreadedCompositingEnabled();
16 // Returns true if force-compositing-mode is on (via flags or field trial).
17 CONTENT_EXPORT bool IsForceCompositingModeEnabled();
19 // Returns true if delegated-renderer is on (via flags, or platform default).
20 CONTENT_EXPORT bool IsDelegatedRendererEnabled();
22 // Returns true if deadline scheduling is on (via flags, or platform default).
23 CONTENT_EXPORT bool IsDeadlineSchedulingEnabled();
25 CONTENT_EXPORT base::Value* GetFeatureStatus();
26 CONTENT_EXPORT base::Value* GetProblems();
27 CONTENT_EXPORT base::Value* GetDriverBugWorkarounds();
29 } // namespace content
31 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_