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

Unified Diff: cc/quads/texture_draw_quad.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/quads/texture_draw_quad.h ('k') | cc/surfaces/display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/texture_draw_quad.cc
diff --git a/cc/quads/texture_draw_quad.cc b/cc/quads/texture_draw_quad.cc
index 6d4c64e966cd4f7d29486214bfa5320f0fd727c2..2cb6f5189c7e7a1e6f2398b11ad30fb4cbb34154 100644
--- a/cc/quads/texture_draw_quad.cc
+++ b/cc/quads/texture_draw_quad.cc
@@ -38,7 +38,8 @@ void TextureDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
SkColor background_color,
const float vertex_opacity[4],
bool y_flipped,
- bool nearest_neighbor) {
+ bool nearest_neighbor,
+ bool secure_output_only) {
bool needs_blending = vertex_opacity[0] != 1.0f || vertex_opacity[1] != 1.0f
|| vertex_opacity[2] != 1.0f || vertex_opacity[3] != 1.0f;
DrawQuad::SetAll(shared_quad_state, DrawQuad::TEXTURE_CONTENT, rect,
@@ -55,6 +56,7 @@ void TextureDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
this->vertex_opacity[3] = vertex_opacity[3];
this->y_flipped = y_flipped;
this->nearest_neighbor = nearest_neighbor;
+ this->secure_output_only = secure_output_only;
}
void TextureDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
@@ -70,7 +72,8 @@ void TextureDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
SkColor background_color,
const float vertex_opacity[4],
bool y_flipped,
- bool nearest_neighbor) {
+ bool nearest_neighbor,
+ bool secure_output_only) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::TEXTURE_CONTENT, rect,
opaque_rect, visible_rect, needs_blending);
resources.ids[kResourceIdIndex] = resource_id;
@@ -86,6 +89,7 @@ void TextureDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
this->vertex_opacity[3] = vertex_opacity[3];
this->y_flipped = y_flipped;
this->nearest_neighbor = nearest_neighbor;
+ this->secure_output_only = secure_output_only;
}
const TextureDrawQuad* TextureDrawQuad::MaterialCast(const DrawQuad* quad) {
« no previous file with comments | « cc/quads/texture_draw_quad.h ('k') | cc/surfaces/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698