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

Unified Diff: mojo/converters/surfaces/surfaces_type_converters.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
Index: mojo/converters/surfaces/surfaces_type_converters.cc
diff --git a/mojo/converters/surfaces/surfaces_type_converters.cc b/mojo/converters/surfaces/surfaces_type_converters.cc
index f3ad7b67b675d9d3d8b9d273f354a82fc1f0ad9e..04866e2288a034cbd1876e63f23a14cc1fabe8ac 100644
--- a/mojo/converters/surfaces/surfaces_type_converters.cc
+++ b/mojo/converters/surfaces/surfaces_type_converters.cc
@@ -201,7 +201,8 @@ bool ConvertDrawQuad(const QuadPtr& input,
texture_quad_state->uv_bottom_right.To<gfx::PointF>(),
texture_quad_state->background_color.To<SkColor>(),
&texture_quad_state->vertex_opacity.storage()[0],
- texture_quad_state->y_flipped, texture_quad_state->nearest_neighbor);
+ texture_quad_state->y_flipped, texture_quad_state->nearest_neighbor,
+ texture_quad_state->secure_output_only);
break;
}
case mus::mojom::Material::TILED_CONTENT: {
@@ -377,6 +378,7 @@ QuadPtr TypeConverter<QuadPtr, cc::DrawQuad>::Convert(
}
texture_state->vertex_opacity = std::move(vertex_opacity);
texture_state->y_flipped = texture_quad->y_flipped;
+ texture_state->secure_output_only = texture_quad->secure_output_only;
quad->texture_quad_state = std::move(texture_state);
break;
}

Powered by Google App Engine
This is Rietveld 408576698