summaryrefslogtreecommitdiffstats
path: root/cc/heads_up_display_layer_impl.cc
diff options
context:
space:
mode:
authorjscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-18 00:13:21 +0000
committerjscholler@chromium.org <jscholler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-18 00:13:21 +0000
commit1fd555bac29e0c828fe90beda3af9274d60eefa1 (patch)
tree2e06a677141329a2877a24ad2ff29cad0f607b3e /cc/heads_up_display_layer_impl.cc
parent62b3ef56542045729e6c19185af00930906f3803 (diff)
downloadchromium_src-1fd555bac29e0c828fe90beda3af9274d60eefa1.zip
chromium_src-1fd555bac29e0c828fe90beda3af9274d60eefa1.tar.gz
chromium_src-1fd555bac29e0c828fe90beda3af9274d60eefa1.tar.bz2
Putting back: Add point-based UV coordinate on TextureLayer
Revert "Revert 177288" TBR=ilevy@chromium.org This reverts commit 3543975945a5667aa3fb48c6d0e1b6312d1ed293. BUG=168927 Review URL: https://chromiumcodereview.appspot.com/11902005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177541 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/heads_up_display_layer_impl.cc')
-rw-r--r--cc/heads_up_display_layer_impl.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/cc/heads_up_display_layer_impl.cc b/cc/heads_up_display_layer_impl.cc
index 1902296..5dbe328 100644
--- a/cc/heads_up_display_layer_impl.cc
+++ b/cc/heads_up_display_layer_impl.cc
@@ -98,11 +98,12 @@ void HeadsUpDisplayLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& a
gfx::Rect quadRect(gfx::Point(), bounds());
gfx::Rect opaqueRect(contentsOpaque() ? quadRect : gfx::Rect());
bool premultipliedAlpha = true;
- gfx::RectF uvRect(0, 0, 1, 1);
- const float vertex_opacity[] = {1.0f, 1.0f, 1.0f, 1.0f};
+ gfx::PointF uv_top_left(0.f, 0.f);
+ gfx::PointF uv_bottom_right(1.f, 1.f);
+ const float vertex_opacity[] = {1.f, 1.f, 1.f, 1.f};
bool flipped = false;
scoped_ptr<TextureDrawQuad> quad = TextureDrawQuad::Create();
- quad->SetNew(sharedQuadState, quadRect, opaqueRect, m_hudTexture->id(), premultipliedAlpha, uvRect, vertex_opacity, flipped);
+ quad->SetNew(sharedQuadState, quadRect, opaqueRect, m_hudTexture->id(), premultipliedAlpha, uv_top_left, uv_bottom_right, vertex_opacity, flipped);
quadSink.append(quad.PassAs<DrawQuad>(), appendQuadsData);
}