Commit 77e0a588 authored by Calder Kitagawa's avatar Calder Kitagawa Committed by Commit Bot

[Paint Preview] Try to reduce tile pop-in, by increasing parallel requests

We are seeing some pretty bad pop-in sometimes. Try to more eagerly request bitmaps.

Change-Id: I4fb249a4b72b4f9034df15c5d4ef4ba0ef0a01aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519577
Commit-Queue: Calder Kitagawa <ckitagawa@chromium.org>
Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org>
Auto-Submit: Calder Kitagawa <ckitagawa@chromium.org>
Reviewed-by: default avatarMehran Mahmoudi <mahmoudi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824072}
parent ac43b757
...@@ -31,9 +31,8 @@ namespace paint_preview { ...@@ -31,9 +31,8 @@ namespace paint_preview {
namespace { namespace {
// To minimize peak memory usage limit the number of concurrent bitmap requests // To minimize peak memory usage limit the number of concurrent bitmap requests.
// to 4. constexpr size_t kMaxParallelBitmapRequests = 6;
constexpr size_t kMaxParallelBitmapRequests = 4;
ScopedJavaLocalRef<jobjectArray> ToJavaUnguessableTokenArray( ScopedJavaLocalRef<jobjectArray> ToJavaUnguessableTokenArray(
JNIEnv* env, JNIEnv* env,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment