summaryrefslogtreecommitdiff
path: root/chromium/media/gpu/android/direct_shared_image_video_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/media/gpu/android/direct_shared_image_video_provider.cc')
-rw-r--r--chromium/media/gpu/android/direct_shared_image_video_provider.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/chromium/media/gpu/android/direct_shared_image_video_provider.cc b/chromium/media/gpu/android/direct_shared_image_video_provider.cc
index bbb4287be62..dc445d33d01 100644
--- a/chromium/media/gpu/android/direct_shared_image_video_provider.cc
+++ b/chromium/media/gpu/android/direct_shared_image_video_provider.cc
@@ -1,4 +1,4 @@
-// Copyright 2019 The Chromium Authors. All rights reserved.
+// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -13,7 +13,6 @@
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "base/task/single_thread_task_runner.h"
-#include "base/task/task_runner_util.h"
#include "gpu/command_buffer/service/abstract_texture.h"
#include "gpu/command_buffer/service/mailbox_manager.h"
#include "gpu/command_buffer/service/shared_image/android_video_image_backing.h"
@@ -219,13 +218,12 @@ bool GpuSharedImageVideoFactory::CreateImageInternal(
kPremul_SkAlphaType, std::move(image), std::move(shared_context),
std::move(drdc_lock));
- // Register it with shared image mailbox as well as legacy mailbox. This
- // keeps |shared_image| around until its destruction cb is called.
- // NOTE: Currently none of the video mailbox consumer uses shared image
- // mailbox.
+ // Register it with shared image mailbox. This keeps |shared_image| around
+ // until its destruction cb is called. NOTE: Currently none of the video
+ // mailbox consumer uses shared image mailbox.
DCHECK(stub_->channel()->gpu_channel_manager()->shared_image_manager());
stub_->channel()->shared_image_stub()->factory()->RegisterBacking(
- std::move(shared_image), /*allow_legacy_mailbox=*/false);
+ std::move(shared_image));
return true;
}