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

Unified Diff: ui/compositor/layer.h

Issue 10444019: Aura: add a bench utility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review comments Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 22efe585741594fea5a80afc7b11690f320fc23d..b9a5ff97d29d034ed6528a9a6740e2ef005e149a 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -220,6 +220,11 @@ class COMPOSITOR_EXPORT Layer :
float device_scale_factor() const { return device_scale_factor_; }
+ // Forces a render surface to be used on this layer. This has no positive
+ // impact, and is only used for benchmarking/testing purpose.
+ void SetForceRenderSurface(bool force);
+ bool force_render_surface() const { return force_render_surface_; }
+
private:
// TODO(vollick): Eventually, if a non-leaf node has an opacity of less than
// 1.0, we'll render to a separate texture, and then apply the alpha.
@@ -283,6 +288,8 @@ class COMPOSITOR_EXPORT Layer :
// Visibility of this layer. See SetVisible/IsDrawn for more details.
bool visible_;
+ bool force_render_surface_;
+
bool fills_bounds_opaquely_;
// If true the layer is always up to date.
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698