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

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

Issue 918633003: Add a telemetry measurement for property tree performance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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
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 13 // Note: When adding a function here, please make sure the logic is not
14 // duplicated in the renderer. 14 // duplicated in the renderer.
15 15
16 // Returns true if the virtual viewport model of pinch-to-zoom is on (via 16 // Returns true if the virtual viewport model of pinch-to-zoom is on (via
17 // flags, or platform default). 17 // flags, or platform default).
18 CONTENT_EXPORT bool IsPinchVirtualViewportEnabled(); 18 CONTENT_EXPORT bool IsPinchVirtualViewportEnabled();
19 19
20 // Returns true if property tree verification is enabled (via flags or platform
21 // defalt).
22 CONTENT_EXPORT bool IsPropertyTreeVerificationEnabled();
23
20 // Returns true if delegated-renderer is on (via flags, or platform default). 24 // Returns true if delegated-renderer is on (via flags, or platform default).
21 CONTENT_EXPORT bool IsDelegatedRendererEnabled(); 25 CONTENT_EXPORT bool IsDelegatedRendererEnabled();
22 26
23 // Returns true if impl-side painting is on (via flags, or platform default) 27 // Returns true if impl-side painting is on (via flags, or platform default)
24 // for the renderer. 28 // for the renderer.
25 CONTENT_EXPORT bool IsImplSidePaintingEnabled(); 29 CONTENT_EXPORT bool IsImplSidePaintingEnabled();
26 30
27 // Returns true if one-copy uploads is on (via flags, or platform default). 31 // Returns true if one-copy uploads is on (via flags, or platform default).
28 // Only one of one-copy and zero-copy can be enabled at a time. 32 // Only one of one-copy and zero-copy can be enabled at a time.
29 CONTENT_EXPORT bool IsOneCopyUploadEnabled(); 33 CONTENT_EXPORT bool IsOneCopyUploadEnabled();
(...skipping 26 matching lines...) Expand all
56 // Returns true if using cc Surfaces is allowed. 60 // Returns true if using cc Surfaces is allowed.
57 CONTENT_EXPORT bool UseSurfacesEnabled(); 61 CONTENT_EXPORT bool UseSurfacesEnabled();
58 62
59 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus(); 63 CONTENT_EXPORT base::DictionaryValue* GetFeatureStatus();
60 CONTENT_EXPORT base::Value* GetProblems(); 64 CONTENT_EXPORT base::Value* GetProblems();
61 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds(); 65 CONTENT_EXPORT std::vector<std::string> GetDriverBugWorkarounds();
62 66
63 } // namespace content 67 } // namespace content
64 68
65 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_ 69 #endif // CONTENT_BROWSER_GPU_COMPOSITOR_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698