Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: content/browser/gpu/compositor_util.h

Issue 212863004: Revert of content: Avoid duplicating the logic used to determine GPU features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 #ifndef CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 5 #ifndef CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 6 #define CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // Note: When adding a function here, please make sure the logic is not
14 // duplicated in the renderer.
15
16 // Returns true if the threaded compositor is on (via flags or field trial). 13 // Returns true if the threaded compositor is on (via flags or field trial).
17 CONTENT_EXPORT bool IsThreadedCompositingEnabled(); 14 CONTENT_EXPORT bool IsThreadedCompositingEnabled();
18 15
19 // Returns true if force-compositing-mode is on (via flags or field trial). 16 // Returns true if force-compositing-mode is on (via flags or field trial).
20 CONTENT_EXPORT bool IsForceCompositingModeEnabled(); 17 CONTENT_EXPORT bool IsForceCompositingModeEnabled();
21 18
22 // Returns true if delegated-renderer is on (via flags, or platform default). 19 // Returns true if delegated-renderer is on (via flags, or platform default).
23 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); 20 CONTENT_EXPORT bool IsDelegatedRendererEnabled();
24 21
25 // Returns true if impl-side painting is on (via flags, or platform default) 22 // Returns true if impl-side painting is on (via flags, or platform default)
26 // for the renderer. 23 // for the renderer.
27 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); 24 CONTENT_EXPORT bool IsImplSidePaintingEnabled();
28 25
29 CONTENT_EXPORT base::Value* GetFeatureStatus(); 26 CONTENT_EXPORT base::Value* GetFeatureStatus();
30 CONTENT_EXPORT base::Value* GetProblems(); 27 CONTENT_EXPORT base::Value* GetProblems();
31 CONTENT_EXPORT base::Value* GetDriverBugWorkarounds(); 28 CONTENT_EXPORT base::Value* GetDriverBugWorkarounds();
32 29
33 } // namespace content 30 } // namespace content
34 31
35 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 32 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698