summaryrefslogtreecommitdiffstats
path: root/cc/texture_layer_impl.h
diff options
context:
space:
mode:
authorjscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 20:17:18 +0000
committerjscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 20:17:18 +0000
commit4c91aec43f77577557acd1cf5f9964239e7e54da (patch)
tree48580e9b10a3251a96c2628f7fbe44a7dbf56b02 /cc/texture_layer_impl.h
parentc5f8c9afdc05877f24bfdf050f49b4301b9ee6b3 (diff)
downloadchromium_src-4c91aec43f77577557acd1cf5f9964239e7e54da.zip
chromium_src-4c91aec43f77577557acd1cf5f9964239e7e54da.tar.gz
chromium_src-4c91aec43f77577557acd1cf5f9964239e7e54da.tar.bz2
Adding support for per vertex opacity on textured layer
BUG=165509 Review URL: https://chromiumcodereview.appspot.com/11570027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/texture_layer_impl.h')
-rw-r--r--cc/texture_layer_impl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cc/texture_layer_impl.h b/cc/texture_layer_impl.h
index 30262da..47e9ca5 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];
};
}