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

Unified Diff: ui/compositor/layer.cc

Issue 1962473002: exo: Add support for alpha_compositing interface to wayland bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wayland-protocols-alpha-compositing
Patch Set: address review feedback 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 | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 8c8a29195c529640c22758434febfdc5e3b7ba7f..eb03c430aec9977e221a280f0fb1bc7a590ecfab 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -566,6 +566,11 @@ bool Layer::TextureFlipped() const {
return texture_layer_->flipped();
}
+void Layer::SetTextureAlpha(float alpha) {
+ DCHECK(texture_layer_.get());
+ texture_layer_->SetVertexOpacity(alpha, alpha, alpha, alpha);
+}
+
void Layer::SetShowSurface(
cc::SurfaceId surface_id,
const cc::SurfaceLayer::SatisfyCallback& satisfy_callback,
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698