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

Unified Diff: webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc

Issue 18432002: Blend TextureLayer background-color at draw time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: separate shaders for textures with background Created 7 years, 6 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: webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc b/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
index eb06faf7f5f2a5704e43ba8266709830484bd672..bf58abab345027c903b2bf6df6dcddf0abda9a36 100644
--- a/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
+++ b/webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc
@@ -72,6 +72,12 @@ void WebExternalTextureLayerImpl::setPremultipliedAlpha(
premultiplied_alpha);
}
+#if WEB_EXTERNAL_TEXTURE_LAYER_HAS_BLEND_BACKGROUND_COLOR
+void WebExternalTextureLayerImpl::setBlendBackgroundColor(bool blend) {
+ static_cast<TextureLayer*>(layer_->layer())->SetBlendBackgroundColor(blend);
+}
+#endif // WEB_EXTERNAL_TEXTURE_LAYER_HAS_BLEND_BACKGROUND_COLOR
+
void WebExternalTextureLayerImpl::willModifyTexture() {
static_cast<TextureLayer*>(layer_->layer())->WillModifyTexture();
}

Powered by Google App Engine
This is Rietveld 408576698