diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-06 19:28:10 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-06 19:28:10 +0000 |
commit | c5e61c7494bebd27df0e968d8d2644e5546154e8 (patch) | |
tree | b1fc570f9f287111ba0b35a3f99f717edf998b22 /ui/gfx/compositor/compositor_win.cc | |
parent | 75e6d54297cfd5f5516c3dd554a957386de72fd6 (diff) | |
download | chromium_src-c5e61c7494bebd27df0e968d8d2644e5546154e8.zip chromium_src-c5e61c7494bebd27df0e968d8d2644e5546154e8.tar.gz chromium_src-c5e61c7494bebd27df0e968d8d2644e5546154e8.tar.bz2 |
Properly handle vertically flipping the texture.
Our old mechanism for drawing external textures from the GPU process that are vertically flipped does not work if the corresponding layer has a hole in it (we don't want to flip the hole). This patch handles the flip at the texture map where it belongs.
BUG=none
TEST=with --use-gl=egl on a debug build of TOUCH_UI, go to a page with a combo box (such as news.google.com); open the combo box; you should not see a bright purple hole.
Review URL: http://codereview.chromium.org/8177007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/compositor/compositor_win.cc')
-rw-r--r-- | ui/gfx/compositor/compositor_win.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gfx/compositor/compositor_win.cc b/ui/gfx/compositor/compositor_win.cc index 8fb817b..5a6c431 100644 --- a/ui/gfx/compositor/compositor_win.cc +++ b/ui/gfx/compositor/compositor_win.cc @@ -242,6 +242,9 @@ void ViewTexture::SetCanvas(const SkCanvas& canvas, void ViewTexture::Draw(const ui::TextureDrawParams& params, const gfx::Rect& clip_bounds) { + if (!params.vertically_flipped) + NOTIMPLEMENTED(); + compositor_->UpdatePerspective(params.transform, view_size_); // Make texture active. |