diff options
Diffstat (limited to 'ui/gfx/compositor/compositor_cc.h')
-rw-r--r-- | ui/gfx/compositor/compositor_cc.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gfx/compositor/compositor_cc.h b/ui/gfx/compositor/compositor_cc.h index 3216f9e..def2181 100644 --- a/ui/gfx/compositor/compositor_cc.h +++ b/ui/gfx/compositor/compositor_cc.h @@ -90,6 +90,10 @@ class COMPOSITOR_EXPORT CompositorCC static void Initialize(bool useThread); static void Terminate(); + // If necessary enables the test context. If the test context is enabled the + // compositor does not render anything to screen. + static void EnableTestContextIfNecessary(); + protected: // Compositor implementation. virtual Texture* CreateTexture() OVERRIDE; @@ -119,6 +123,9 @@ class COMPOSITOR_EXPORT CompositorCC WebKit::WebLayer root_web_layer_; WebKit::WebLayerTreeView host_; + // See description above SetTestContextEnabled. + static bool test_context_enabled_; + DISALLOW_COPY_AND_ASSIGN(CompositorCC); }; |