Commit f9e46060 authored by Eric Karl's avatar Eric Karl Committed by Commit Bot

[Reland] Temporarily disable context-clear on background for low-end Android

This optimization was added in M61, but was causing flicker on app
resume. We'll re-enable it once a fix for that issue has landed.

TBR=piman

Bug: 792120
Change-Id: I7d0ddc96b56a2e99f39ef160f175b79ec466531b
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Reviewed-on: https://chromium-review.googlesource.com/854740Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Reviewed-by: default avatarMaria Khomenko <mariakhomenko@chromium.org>
Commit-Queue: Eric Karl <ericrk@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#527748}
Reviewed-on: https://chromium-review.googlesource.com/944193Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540384}
parent aa6d17fb
...@@ -266,6 +266,10 @@ void GpuChannelManager::DoWakeUpGpu() { ...@@ -266,6 +266,10 @@ void GpuChannelManager::DoWakeUpGpu() {
void GpuChannelManager::OnApplicationStateChange( void GpuChannelManager::OnApplicationStateChange(
base::android::ApplicationState state) { base::android::ApplicationState state) {
// TODO(ericrk): Temporarily disable the context release logic due to
// https://crbug.com/792120. Re-enable when the fix lands.
return;
if (state != base::android::APPLICATION_STATE_HAS_STOPPED_ACTIVITIES || if (state != base::android::APPLICATION_STATE_HAS_STOPPED_ACTIVITIES ||
!is_running_on_low_end_mode_) { !is_running_on_low_end_mode_) {
return; return;
......
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