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

Unified Diff: cc/texture_layer_impl.h

Issue 11570027: Adding support for per vertex opacity on textured layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years 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/texture_layer.cc ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_layer_impl.h
diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
index 30262dacf0124cb884b097dae4d74b59ad09871c..47e9ca5686364fc635dbf8125c93cac023ff29b5 100644
--- a/cc/texture_layer_impl.h
+++ b/cc/texture_layer_impl.h
@@ -32,6 +32,11 @@ public:
void setFlipped(bool flipped) { m_flipped = flipped; }
void setUVRect(const gfx::RectF& rect) { m_uvRect = rect; }
+ // 1--2
+ // | |
+ // 0--3
+ void setVertexOpacity(const float vertexOpacity[4]);
+
private:
TextureLayerImpl(LayerTreeImpl* treeImpl, int id);
@@ -42,6 +47,7 @@ private:
bool m_premultipliedAlpha;
bool m_flipped;
gfx::RectF m_uvRect;
+ float m_vertexOpacity[4];
};
}
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698