diff options
author | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-12 02:21:57 +0000 |
---|---|---|
committer | qinmin@chromium.org <qinmin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-12 02:21:57 +0000 |
commit | 00f53cdf3f174615d04fc38897a49635fb3193b9 (patch) | |
tree | 604442d979f8d206b1b75776c4d484b310c8a0c7 /content/shell | |
parent | d3199d3d5c66276af2050195f868158d8abf87ec (diff) | |
download | chromium_src-00f53cdf3f174615d04fc38897a49635fb3193b9.zip chromium_src-00f53cdf3f174615d04fc38897a49635fb3193b9.tar.gz chromium_src-00f53cdf3f174615d04fc38897a49635fb3193b9.tar.bz2 |
Don't enable alpha blending for legacy fullscreen video implementation
There is some bugs with Samsung Galaxy devices when setting the surface holder to translucent and setting it back.
Since the legacy fullscreen video implementation doesn't need alpha blending, disable it.
BUG=33309
Review URL: https://codereview.chromium.org/134933002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244411 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell')
-rw-r--r-- | content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java index 505ae86..6534da4 100644 --- a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java +++ b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java @@ -123,13 +123,19 @@ public class ContentShellActivity extends Activity { @Override public void onShowCustomView(View view) { super.onShowCustomView(view); - mShellManager.setOverlayVideoMode(true); + if (CommandLine.getInstance().hasSwitch( + ContentSwitches.ENABLE_OVERLAY_FULLSCREEN_VIDEO_SUBTITLE)) { + mShellManager.setOverlayVideoMode(true); + } } @Override public void onDestroyContentVideoView() { super.onDestroyContentVideoView(); - mShellManager.setOverlayVideoMode(false); + if (CommandLine.getInstance().hasSwitch( + ContentSwitches.ENABLE_OVERLAY_FULLSCREEN_VIDEO_SUBTITLE)) { + mShellManager.setOverlayVideoMode(false); + } } }; } |