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

Unified Diff: ui/compositor/layer.h

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 | « components/exo/wayland/server.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 26560d1d5fbd1a1f287e921c9c1323649cb738c7..8b90283a594a69c93a4238c6f0508e6beac099d2 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -281,6 +281,15 @@ class COMPOSITOR_EXPORT Layer
void SetTextureFlipped(bool flipped);
bool TextureFlipped() const;
+ // The alpha value applied to the whole texture. The effective value of each
+ // pixel is computed as:
+ // pixel.a = pixel.a * alpha.
+ // Note: This is different from SetOpacity() as it only applies to the
+ // texture and child layers are unaffected.
+ // TODO(reveman): Remove once components/exo code is using SetShowSurface.
+ // crbug.com/610086
+ void SetTextureAlpha(float alpha);
+
// Begins showing content from a surface with a particular id.
void SetShowSurface(cc::SurfaceId surface_id,
const cc::SurfaceLayer::SatisfyCallback& satisfy_callback,
« no previous file with comments | « components/exo/wayland/server.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698