Skip to content

Commit 7e2346d

Browse files
author
Teng-Hui Zhu
committed
Update the scale while updating the drawGL functor
bug:6008955 webkit change: https://android-git.corp.google.com/g/#/c/165734/ Change-Id: I5ba7998a6b8f33b44582b0158ba966054aaad2a8
1 parent 81453f7 commit 7e2346d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/java/android/webkit/WebView.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6029,7 +6029,7 @@ void setGLRectViewport() {
60296029
calcOurContentVisibleRectF(mVisibleContentRect);
60306030
nativeUpdateDrawGLFunction(mGLViewportEmpty ? null : mGLRectViewport,
60316031
mGLViewportEmpty ? null : mViewRectViewport,
6032-
mVisibleContentRect);
6032+
mVisibleContentRect, getScale());
60336033
}
60346034

60356035
/**
@@ -9815,7 +9815,7 @@ private native int nativeDraw(Canvas canvas, RectF visibleRect,
98159815
private native int nativeGetDrawGLFunction(int nativeInstance, Rect rect,
98169816
Rect viewRect, RectF visibleRect, float scale, int extras);
98179817
private native void nativeUpdateDrawGLFunction(Rect rect, Rect viewRect,
9818-
RectF visibleRect);
9818+
RectF visibleRect, float scale);
98199819
private native void nativeExtendSelection(int x, int y);
98209820
private native int nativeFindAll(String findLower, String findUpper,
98219821
boolean sameAsLastSearch);

0 commit comments

Comments
 (0)