Skip to content

Commit

Permalink
Remove the deprecated Initialize() in video_accelerator.mojom.
Browse files Browse the repository at this point in the history
The function is deprecated by crrev.com/2036723002.

Now both Android and Chromium have been updated. Remove the
deprecated function which is only used as a transition plan.

BUG=None
TEST=Run android.media.cts.AdaptivePlayback CTS on minnie.

Review-Url: https://codereview.chromium.org/2088173002
Cr-Commit-Position: refs/heads/master@{#401537}
  • Loading branch information
owenlin authored and Commit bot committed Jun 23, 2016
1 parent 4706b08 commit 55d44b6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
9 changes: 0 additions & 9 deletions chrome/gpu/gpu_arc_video_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,6 @@ void GpuArcVideoService::Initialize(
static_cast<::arc::mojom::VideoAcceleratorService::Result>(result));
}

void GpuArcVideoService::DeprecatedInitialize(
::arc::mojom::ArcVideoAcceleratorConfigPtr config,
const DeprecatedInitializeCallback& callback) {
DVLOG(2) << "DeprecatedInitialize";
ArcVideoAccelerator::Result result =
accelerator_->Initialize(config.To<ArcVideoAccelerator::Config>(), this);
callback.Run(result == ArcVideoAccelerator::SUCCESS);
}

base::ScopedFD GpuArcVideoService::UnwrapFdFromMojoHandle(
mojo::ScopedHandle handle) {
if (!handle.is_valid()) {
Expand Down
3 changes: 0 additions & 3 deletions chrome/gpu/gpu_arc_video_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ class GpuArcVideoService : public ::arc::mojom::VideoAcceleratorService,
// ::arc::mojom::VideoAcceleratorService implementation.
void Initialize(::arc::mojom::ArcVideoAcceleratorConfigPtr config,
const InitializeCallback& callback) override;
void DeprecatedInitialize(
::arc::mojom::ArcVideoAcceleratorConfigPtr config,
const DeprecatedInitializeCallback& callback) override;
void BindSharedMemory(::arc::mojom::PortType port,
uint32_t index,
mojo::ScopedHandle ashmem_handle,
Expand Down
2 changes: 0 additions & 2 deletions components/arc/common/video_accelerator.mojom
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ interface VideoAcceleratorService {
INSUFFICIENT_RESOURCES = 5,
};

DeprecatedInitialize@0(ArcVideoAcceleratorConfig config) => (bool result);

[MinVersion=1]
Initialize@7(ArcVideoAcceleratorConfig config) => (Result result);

Expand Down

0 comments on commit 55d44b6

Please sign in to comment.