Commit ba2a8f08 authored by Peng Huang's avatar Peng Huang Committed by Commit Bot

Remove the workaround for Vulkan + SurfaceControl

The rotation issue is fixed by https://crrev.com/2459569

Bug: 1115065
Change-Id: Idb8767dd075cda95accc13ee62733eb005f1133a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462682
Auto-Submit: Peng Huang <penghuang@chromium.org>
Commit-Queue: Vasiliy Telezhnikov <vasilyt@chromium.org>
Reviewed-by: default avatarVasiliy Telezhnikov <vasilyt@chromium.org>
Cr-Commit-Position: refs/heads/master@{#815574}
parent c50341be
...@@ -114,16 +114,6 @@ SkiaOutputDeviceBufferQueue::SkiaOutputDeviceBufferQueue( ...@@ -114,16 +114,6 @@ SkiaOutputDeviceBufferQueue::SkiaOutputDeviceBufferQueue(
capabilities_.only_invalidates_damage_rect = false; capabilities_.only_invalidates_damage_rect = false;
capabilities_.number_of_buffers = 3; capabilities_.number_of_buffers = 3;
capabilities_.orientation_mode = OutputSurface::OrientationMode::kHardware; capabilities_.orientation_mode = OutputSurface::OrientationMode::kHardware;
#if defined(OS_ANDROID)
// With vulkan, if the chrome is launched in landscape mode, the chrome is
// always blank until chrome window is rotated once. Workaround this problem
// by using logic rotation mode.
// TODO(https://crbug.com/1115065): use hardware orientation mode for vulkan,
if (dependency_->GetSharedContextState()->GrContextIsVulkan() &&
base::FeatureList::GetFieldTrial(features::kVulkan)) {
capabilities_.orientation_mode = OutputSurface::OrientationMode::kLogic;
}
#endif
// Force the number of max pending frames to one when the switch // Force the number of max pending frames to one when the switch
// "double-buffer-compositing" is passed. // "double-buffer-compositing" is passed.
......
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