From 1e6a2bc451904125ced0e829f030056b8e2bd8e2 Mon Sep 17 00:00:00 2001 From: dcastagna Date: Tue, 22 Mar 2016 14:30:50 -0700 Subject: Update secure output flags on display changes. This patch adds a WindowTreeHostManager::Observer to exo that sets the appropriate output secure flag to the compositors when the display configuration changes. The first iteration for the logic that determines if the output is secure is simply a check if the connected display is internal and mirroring is disabled on all the devices. Additionally this patch moves the 'is_secure_' flag from the OutputSurface to LayerTreeImpl, since the lifetime of the latter better matches the display configuration changes. BUG=b/27173841,b/27174223 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1821553002 Cr-Commit-Position: refs/heads/master@{#382683} --- cc/output/output_surface.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'cc/output') diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h index 64cb19e..43cacfe 100644 --- a/cc/output/output_surface.h +++ b/cc/output/output_surface.h @@ -167,10 +167,6 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider { bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, base::trace_event::ProcessMemoryDump* pmd) override; - // Is this output surface associated with a secure display. - bool is_secure() const { return is_secure_; } - void set_is_secure(bool is_secure) { is_secure_ = is_secure; } - protected: OutputSurfaceClient* client_; @@ -196,7 +192,6 @@ class CC_EXPORT OutputSurface : public base::trace_event::MemoryDumpProvider { private: bool external_stencil_test_enabled_; - bool is_secure_ = false; base::WeakPtrFactory weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(OutputSurface); -- cgit v1.1