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

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: 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
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index d19fe073e9d86c3690b17db99d151d4f7a849532..33b42a1b7c025eda0f80d25905e336c2add47ae5 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -216,6 +216,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.
@@ -279,6 +284,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.

Powered by Google App Engine
This is Rietveld 408576698