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

Issue 17274013: [Android WebView] Clamp Bitmap size to max. dimensions when drawing into a Canvas (Closed)

Created:
7 years, 6 months ago by benm (inactive)
Modified:
7 years, 6 months ago
Reviewers:
joth
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android WebView] Clamp Bitmap size when it will be drawn into a Canvas. While the WebView GL path is still under development, we fall back to the SW path which uses a renders into a View-sized bitmap if a HW draw is requested. When drawing into a Canvas, there are maximum dimensions imposed on bitmaps that can be drawn into it, and when using a HW Canvas the limits are quite small (based on maximum GL texture size) This patch adds a size check on the bitmap we create if we intend it to be drawn into a Canvas. This means content may be cropped, but for testing some content is better than no content. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207747

Patch Set 1 #

Total comments: 8

Patch Set 2 : joth comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -12 lines) Patch
M android_webview/browser/browser_view_renderer.h View 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/browser/in_process_view_renderer.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java View 1 1 chunk +9 lines, -1 line 0 comments Download
M android_webview/native/java_browser_view_renderer_helper.h View 1 chunk +2 lines, -1 line 0 comments Download
M android_webview/native/java_browser_view_renderer_helper.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
benm (inactive)
ptal!
7 years, 6 months ago (2013-06-20 10:17:32 UTC) #1
joth
Thanks for fixing this up! Some suggestions to simplify the java class https://codereview.chromium.org/17274013/diff/1/android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java File android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java ...
7 years, 6 months ago (2013-06-20 17:26:08 UTC) #2
benm (inactive)
thanks joth! https://codereview.chromium.org/17274013/diff/1/android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java File android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java (right): https://codereview.chromium.org/17274013/diff/1/android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java#newcode26 android_webview/java/src/org/chromium/android_webview/JavaBrowserViewRendererHelper.java:26: * Provides a Bitmap object with a ...
7 years, 6 months ago (2013-06-20 18:03:20 UTC) #3
joth
lgtm
7 years, 6 months ago (2013-06-20 18:42:25 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benm@chromium.org/17274013/8001
7 years, 6 months ago (2013-06-20 18:58:30 UTC) #5
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 07:20:55 UTC) #6
Message was sent while issue was closed.
Change committed as 207747

Powered by Google App Engine
This is Rietveld 408576698