Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/scene_layer/TabListSceneLayer.java

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Assume true/false when updating fullscreen state Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.compositor.scene_layer; 5 package org.chromium.chrome.browser.compositor.scene_layer;
6 6
7 import android.content.Context; 7 import android.content.Context;
8 import android.content.res.Resources; 8 import android.content.res.Resources;
9 import android.graphics.RectF; 9 import android.graphics.RectF;
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 ColorUtils.getThemedAssetColor(toolbarBackgroundColor, t.isI ncognito()); 82 ColorUtils.getThemedAssetColor(toolbarBackgroundColor, t.isI ncognito());
83 83
84 int borderColorResource = 84 int borderColorResource =
85 t.isIncognito() ? R.color.tab_back_incognito : R.color.tab_b ack; 85 t.isIncognito() ? R.color.tab_back_incognito : R.color.tab_b ack;
86 // TODO(dtrainor, clholgat): remove "* dpToPx" once the native part fully supports dp. 86 // TODO(dtrainor, clholgat): remove "* dpToPx" once the native part fully supports dp.
87 nativePutTabLayer(mNativePtr, t.getId(), R.id.control_container, 87 nativePutTabLayer(mNativePtr, t.getId(), R.id.control_container,
88 R.drawable.btn_tab_close, R.drawable.tabswitcher_border_fram e_shadow, 88 R.drawable.btn_tab_close, R.drawable.tabswitcher_border_fram e_shadow,
89 R.drawable.tabswitcher_border_frame_decoration, R.drawable.l ogo_card_back, 89 R.drawable.tabswitcher_border_frame_decoration, R.drawable.l ogo_card_back,
90 R.drawable.tabswitcher_border_frame, 90 R.drawable.tabswitcher_border_frame,
91 R.drawable.tabswitcher_border_frame_inner_shadow, t.canUseLi veTexture(), 91 R.drawable.tabswitcher_border_frame_inner_shadow, t.canUseLi veTexture(),
92 fullscreenManager.areBrowserControlsAtBottom(), t.getBackgro undColor(), 92 t.canUseStaticLayer(), fullscreenManager.areBrowserControlsA tBottom(),
93 t.getBackgroundColor(),
93 ApiCompatibilityUtils.getColor(res, borderColorResource), t. isIncognito(), 94 ApiCompatibilityUtils.getColor(res, borderColorResource), t. isIncognito(),
94 layout.getOrientation() == Orientation.PORTRAIT, t.getRender X() * dpToPx, 95 layout.getOrientation() == Orientation.PORTRAIT, t.getRender X() * dpToPx,
95 t.getRenderY() * dpToPx, t.getScaledContentWidth() * dpToPx, 96 t.getRenderY() * dpToPx, t.getScaledContentWidth() * dpToPx,
96 t.getScaledContentHeight() * dpToPx, t.getOriginalContentWid th() * dpToPx, 97 t.getScaledContentHeight() * dpToPx, t.getOriginalContentWid th() * dpToPx,
97 t.getOriginalContentHeight() * dpToPx, contentViewport.heigh t(), 98 t.getOriginalContentHeight() * dpToPx, contentViewport.heigh t(),
98 t.getClippedX() * dpToPx, t.getClippedY() * dpToPx, 99 t.getClippedX() * dpToPx, t.getClippedY() * dpToPx,
99 Math.min(t.getClippedWidth(), t.getScaledContentWidth()) * d pToPx, 100 Math.min(t.getClippedWidth(), t.getScaledContentWidth()) * d pToPx,
100 Math.min(t.getClippedHeight(), t.getScaledContentHeight()) * dpToPx, 101 Math.min(t.getClippedHeight(), t.getScaledContentHeight()) * dpToPx,
101 t.getTiltXPivotOffset() * dpToPx, t.getTiltYPivotOffset() * dpToPx, 102 t.getTiltXPivotOffset() * dpToPx, t.getTiltYPivotOffset() * dpToPx,
102 t.getTiltX(), t.getTiltY(), t.getAlpha(), t.getBorderAlpha() * decoration, 103 t.getTiltX(), t.getTiltY(), t.getAlpha(), t.getBorderAlpha() * decoration,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 private native long nativeInit(); 142 private native long nativeInit();
142 private native void nativeBeginBuildingFrame(long nativeTabListSceneLayer); 143 private native void nativeBeginBuildingFrame(long nativeTabListSceneLayer);
143 private native void nativeFinishBuildingFrame(long nativeTabListSceneLayer); 144 private native void nativeFinishBuildingFrame(long nativeTabListSceneLayer);
144 private native void nativeUpdateLayer(long nativeTabListSceneLayer, int back groundColor, 145 private native void nativeUpdateLayer(long nativeTabListSceneLayer, int back groundColor,
145 float viewportX, float viewportY, float viewportWidth, float viewpor tHeight, 146 float viewportX, float viewportY, float viewportWidth, float viewpor tHeight,
146 LayerTitleCache layerTitleCache, TabContentManager tabContentManager , 147 LayerTitleCache layerTitleCache, TabContentManager tabContentManager ,
147 ResourceManager resourceManager); 148 ResourceManager resourceManager);
148 private native void nativePutTabLayer(long nativeTabListSceneLayer, int id, 149 private native void nativePutTabLayer(long nativeTabListSceneLayer, int id,
149 int toolbarResourceId, int closeButtonResourceId, int shadowResource Id, 150 int toolbarResourceId, int closeButtonResourceId, int shadowResource Id,
150 int contourResourceId, int backLogoResourceId, int borderResourceId, 151 int contourResourceId, int backLogoResourceId, int borderResourceId,
151 int borderInnerShadowResourceId, boolean canUseLiveLayer, 152 int borderInnerShadowResourceId, boolean canUseLiveLayer, boolean ca nUseStaticLayer,
152 boolean browserControlsAtBottom, int tabBackgroundColor, 153 boolean browserControlsAtBottom, int tabBackgroundColor, int backLog oColor,
153 int backLogoColor, boolean incognito, boolean isPortrait, float x, f loat y, float width, 154 boolean incognito, boolean isPortrait, float x, float y, float width , float height,
154 float height, float contentWidth, float contentHeight, float visible ContentHeight, 155 float contentWidth, float contentHeight, float visibleContentHeight, float shadowX,
155 float shadowX, float shadowY, float shadowWidth, float shadowHeight, float pivotX, 156 float shadowY, float shadowWidth, float shadowHeight, float pivotX, float pivotY,
156 float pivotY, float rotationX, float rotationY, float alpha, float b orderAlpha, 157 float rotationX, float rotationY, float alpha, float borderAlpha,
157 float borderInnerShadowAlpha, float contourAlpha, float shadowAlpha, float closeAlpha, 158 float borderInnerShadowAlpha, float contourAlpha, float shadowAlpha, float closeAlpha,
158 float closeBtnWidth, float staticToViewBlend, float borderScale, flo at saturation, 159 float closeBtnWidth, float staticToViewBlend, float borderScale, flo at saturation,
159 float brightness, boolean showToolbar, int defaultThemeColor, 160 float brightness, boolean showToolbar, int defaultThemeColor,
160 int toolbarBackgroundColor, int closeButtonColor, boolean anonymizeT oolbar, 161 int toolbarBackgroundColor, int closeButtonColor, boolean anonymizeT oolbar,
161 boolean showTabTitle, int toolbarTextBoxResource, int toolbarTextBox BackgroundColor, 162 boolean showTabTitle, int toolbarTextBoxResource, int toolbarTextBox BackgroundColor,
162 float toolbarTextBoxAlpha, float toolbarAlpha, float toolbarYOffset, 163 float toolbarTextBoxAlpha, float toolbarAlpha, float toolbarYOffset,
163 float sideBorderScale, boolean insetVerticalBorder); 164 float sideBorderScale, boolean insetVerticalBorder);
164 } 165 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698