Commit e8835ca9 authored by kylechar's avatar kylechar Committed by Commit Bot

Remove last OOP-D references in code

There were a few remaining references to OOP-D in the code that are no
longer relevant since the feature is launched.

Bug: 936425
Change-Id: I32930a85684007068303d1b8083a3b4a00227e02
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2101189Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#750561}
parent 4bc3bf4f
...@@ -1732,10 +1732,10 @@ const char kShowOverdrawFeedbackDescription[] = ...@@ -1732,10 +1732,10 @@ const char kShowOverdrawFeedbackDescription[] =
"Visualize overdraw by color-coding elements based on if they have other " "Visualize overdraw by color-coding elements based on if they have other "
"elements drawn underneath."; "elements drawn underneath.";
const char kSkiaRendererName[] = "Skia API for OOP-D compositing"; const char kSkiaRendererName[] = "Skia API for compositing";
const char kSkiaRendererDescription[] = const char kSkiaRendererDescription[] =
"If enabled, the display compositor will use Skia as the graphics API " "If enabled, the display compositor will use Skia as the graphics API "
"instead of OpenGL ES. Requires Viz Display Compositor (OOP-D)."; "instead of OpenGL ES.";
const char kHistoryManipulationIntervention[] = const char kHistoryManipulationIntervention[] =
"History Manipulation Intervention"; "History Manipulation Intervention";
......
...@@ -27,9 +27,6 @@ void ExternalBeginFrameSourceAndroid::OnVSync( ...@@ -27,9 +27,6 @@ void ExternalBeginFrameSourceAndroid::OnVSync(
const base::android::JavaParamRef<jobject>& obj, const base::android::JavaParamRef<jobject>& obj,
jlong time_micros, jlong time_micros,
jlong period_micros) { jlong period_micros) {
// TODO(ericrk): This logic is ported from window_android.cc. Once OOP-D
// conversion is complete, we can delete the logic there.
// Warning: It is generally unsafe to manufacture TimeTicks values. The // Warning: It is generally unsafe to manufacture TimeTicks values. The
// following assumption is being made, AND COULD EASILY BREAK AT ANY TIME: // following assumption is being made, AND COULD EASILY BREAK AT ANY TIME:
// Upstream, Java code is providing "System.nanos() / 1000," and this is the // Upstream, Java code is providing "System.nanos() / 1000," and this is the
......
...@@ -262,19 +262,19 @@ scoped_refptr<gl::GLShareGroup> VizMainImpl::GetShareGroup() { ...@@ -262,19 +262,19 @@ scoped_refptr<gl::GLShareGroup> VizMainImpl::GetShareGroup() {
void VizMainImpl::ExitProcess(bool immediately) { void VizMainImpl::ExitProcess(bool immediately) {
DCHECK(gpu_thread_task_runner_->BelongsToCurrentThread()); DCHECK(gpu_thread_task_runner_->BelongsToCurrentThread());
// Close mojom::VizMain bindings first so the browser can't try to reconnect.
receiver_.reset();
if (!gpu_init_->gpu_info().in_process_gpu && immediately) { if (!gpu_init_->gpu_info().in_process_gpu && immediately) {
// Atomically shut down GPU process to make it faster and simpler. // Atomically shut down GPU process to make it faster and simpler.
base::Process::TerminateCurrentProcessImmediately(/*exit_code=*/0); base::Process::TerminateCurrentProcessImmediately(/*exit_code=*/0);
return; return;
} }
// Close mojom::VizMain bindings first so the browser can't try to reconnect.
receiver_.reset();
if (viz_compositor_thread_runner_) { if (viz_compositor_thread_runner_) {
// OOP-D requires destroying RootCompositorFrameSinkImpls on the compositor // Destroy RootCompositorFrameSinkImpls on the compositor while the GPU
// thread while the GPU thread is still running to avoid deadlock. Quit GPU // thread is still running to avoid deadlock. Quit GPU thread TaskRunner
// thread TaskRunner after cleanup on compositor thread is finished. // after cleanup on compositor thread is finished.
viz_compositor_thread_runner_->CleanupForShutdown(base::BindOnce( viz_compositor_thread_runner_->CleanupForShutdown(base::BindOnce(
&Delegate::QuitMainMessageLoop, base::Unretained(delegate_))); &Delegate::QuitMainMessageLoop, base::Unretained(delegate_)));
} else { } else {
......
...@@ -161,16 +161,16 @@ class VizMainImpl : public mojom::VizMain, ...@@ -161,16 +161,16 @@ class VizMainImpl : public mojom::VizMain,
std::unique_ptr<gpu::GpuInit> gpu_init_; std::unique_ptr<gpu::GpuInit> gpu_init_;
std::unique_ptr<GpuServiceImpl> gpu_service_; std::unique_ptr<GpuServiceImpl> gpu_service_;
// This is created for OOP-D only. It allows the display compositor to use // Allows the display compositor to use InProcessCommandBuffer to send GPU
// InProcessCommandBuffer to send GPU commands to the GPU thread from the // commands to the GPU thread from the compositor thread. This must outlive
// compositor thread. This must outlive |viz_compositor_thread_runner_|. // |viz_compositor_thread_runner_|.
std::unique_ptr<gpu::CommandBufferTaskExecutor> task_executor_; std::unique_ptr<gpu::CommandBufferTaskExecutor> task_executor_;
// If the gpu service is not yet ready then we stash pending // If the gpu service is not yet ready then we stash pending
// FrameSinkManagerParams. // FrameSinkManagerParams.
mojom::FrameSinkManagerParamsPtr pending_frame_sink_manager_params_; mojom::FrameSinkManagerParamsPtr pending_frame_sink_manager_params_;
// Runs the VizCompositorThread for the display compositor with OOP-D. // Runs the VizCompositorThread for the display compositor.
std::unique_ptr<VizCompositorThreadRunnerImpl> std::unique_ptr<VizCompositorThreadRunnerImpl>
viz_compositor_thread_runner_impl_; viz_compositor_thread_runner_impl_;
// Note under Android WebView where VizCompositorThreadRunner is not created // Note under Android WebView where VizCompositorThreadRunner is not created
......
...@@ -18,9 +18,10 @@ enum class GpuMode { ...@@ -18,9 +18,10 @@ enum class GpuMode {
HARDWARE_VULKAN, HARDWARE_VULKAN,
// The GPU process is running for SwiftShader WebGL. // The GPU process is running for SwiftShader WebGL.
SWIFTSHADER, SWIFTSHADER,
// The GPU process is running for the display compositor (OOP-D only). // The GPU process is running for the display compositor.
DISPLAY_COMPOSITOR, DISPLAY_COMPOSITOR,
// The GPU process is disabled and won't start (not OOP-D only). // The GPU process is disabled and won't start. This is only used on Windows
// when GPU acceleration and SwiftShader are both disabled.
DISABLED, DISABLED,
}; };
......
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