Bug 949458 - Give the tab counter view its own rendering layer. r=blassey, a=bajaj
☠☠ backed out by fe8d463a6adf ☠ ☠
authorBrian Nicholson <bnicholson@mozilla.com>
Tue, 14 Jan 2014 16:38:46 -0800
changeset 175758 e7d4d91519a09d89f31d7897c0621b183df1d0fa
parent 175757 dffdacbb272c95f3b666f5526866678ebf45be14
child 175759 bb2cc88a30fe4c7b98c91d8cbc88089578056abc
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey, bajaj
bugs949458
milestone28.0a2
Bug 949458 - Give the tab counter view its own rendering layer. r=blassey, a=bajaj
mobile/android/base/toolbar/BrowserToolbar.java
--- a/mobile/android/base/toolbar/BrowserToolbar.java
+++ b/mobile/android/base/toolbar/BrowserToolbar.java
@@ -274,16 +274,19 @@ public class BrowserToolbar extends Geck
             mUrlBarRightEdge.getDrawable().setLevel(6000);
         }
 
         mTitle = (GeckoTextView) findViewById(R.id.url_bar_title);
         mTitlePadding = mTitle.getPaddingRight();
 
         mTabs = (ShapedButton) findViewById(R.id.tabs);
         mTabsCounter = (TabCounter) findViewById(R.id.tabs_counter);
+        if (Build.VERSION.SDK_INT >= 11) {
+            mTabsCounter.setLayerType(View.LAYER_TYPE_HARDWARE, null);
+        }
 
         mBack = (ImageButton) findViewById(R.id.back);
         setButtonEnabled(mBack, false);
         mForward = (ImageButton) findViewById(R.id.forward);
         setButtonEnabled(mForward, false);
 
         mFavicon = (ImageButton) findViewById(R.id.favicon);
         if (Build.VERSION.SDK_INT >= 11) {