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

Unified Diff: cc/surfaces/display.cc

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « cc/surfaces/display.h ('k') | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.cc
diff --git a/cc/surfaces/display.cc b/cc/surfaces/display.cc
index 51e99210428c8e0510c77679483c7a45732a072e..b8a331abd25a00c870e313dbbe3d20fcfd70a779 100644
--- a/cc/surfaces/display.cc
+++ b/cc/surfaces/display.cc
@@ -149,6 +149,19 @@ void Display::SetExternalClip(const gfx::Rect& clip) {
external_clip_ = clip;
}
+void Display::SetOutputIsSecure(bool secure) {
+ if (secure == output_is_secure_)
+ return;
+ output_is_secure_ = secure;
+
+ if (aggregator_) {
+ aggregator_->set_output_is_secure(secure);
+ // Force a redraw.
+ if (!current_surface_id_.is_null())
+ aggregator_->SetFullDamageForSurface(current_surface_id_);
+ }
+}
+
void Display::InitializeRenderer() {
if (resource_provider_)
return;
@@ -197,6 +210,7 @@ void Display::InitializeRenderer() {
!output_surface_->GetOverlayCandidateValidator();
aggregator_.reset(new SurfaceAggregator(
surface_manager_, resource_provider_.get(), output_partial_list));
+ aggregator_->set_output_is_secure(output_is_secure_);
}
void Display::DidLoseOutputSurface() {
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/surfaces/surface_aggregator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698