diff options
author | dcastagna <dcastagna@chromium.org> | 2016-03-22 14:30:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-22 21:31:53 +0000 |
commit | 1e6a2bc451904125ced0e829f030056b8e2bd8e2 (patch) | |
tree | ee7cfa1dea4d7b6142474568f637828382b9e892 /cc/output | |
parent | 1a87fbf87fc1ac4aaef80094be817c6b3a87dc1b (diff) | |
download | chromium_src-1e6a2bc451904125ced0e829f030056b8e2bd8e2.zip chromium_src-1e6a2bc451904125ced0e829f030056b8e2bd8e2.tar.gz chromium_src-1e6a2bc451904125ced0e829f030056b8e2bd8e2.tar.bz2 |
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}
Diffstat (limited to 'cc/output')
-rw-r--r-- | cc/output/output_surface.h | 5 |
1 files changed, 0 insertions, 5 deletions
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<OutputSurface> weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(OutputSurface); |