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

Unified Diff: cc/layers/video_layer_impl.cc

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added non-premultiplied test Created 7 years, 5 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: cc/layers/video_layer_impl.cc
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc
index dc55ba2fcbe420894c70e258873fb3625d98e615..4b5671ff90e3bb1516d67eabe6901d6c1d3a97fa 100644
--- a/cc/layers/video_layer_impl.cc
+++ b/cc/layers/video_layer_impl.cc
@@ -156,6 +156,7 @@ void VideoLayerImpl::AppendQuads(QuadSink* quad_sink,
premultiplied_alpha,
uv_top_left,
uv_bottom_right,
+ SK_ColorTRANSPARENT,
opacity,
flipped);
quad_sink->Append(texture_quad.PassAs<DrawQuad>(), append_quads_data);
@@ -196,6 +197,7 @@ void VideoLayerImpl::AppendQuads(QuadSink* quad_sink,
premultiplied_alpha,
uv_top_left,
uv_bottom_right,
+ SK_ColorTRANSPARENT,
opacity,
flipped);
quad_sink->Append(texture_quad.PassAs<DrawQuad>(), append_quads_data);

Powered by Google App Engine
This is Rietveld 408576698