Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: content/common/gpu/media/media_service.cc

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Squash and rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/common/gpu/media/media_service.cc
diff --git a/content/common/gpu/media/media_service.cc b/content/common/gpu/media/media_service.cc
deleted file mode 100644
index 1fbd51e393a35bb792c859dd44b635005820e77d..0000000000000000000000000000000000000000
--- a/content/common/gpu/media/media_service.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/common/gpu/media/media_service.h"
-
-#include <memory>
-#include <utility>
-
-#include "content/common/gpu/media/gpu_video_decode_accelerator.h"
-#include "content/common/gpu/media/gpu_video_encode_accelerator.h"
-#include "content/common/gpu/media/media_channel.h"
-#include "gpu/ipc/service/gpu_channel.h"
-#include "gpu/ipc/service/gpu_channel_manager.h"
-#include "ipc/ipc_message_macros.h"
-#include "ipc/param_traits_macros.h"
-
-namespace content {
-
-MediaService::MediaService(gpu::GpuChannelManager* channel_manager)
- : channel_manager_(channel_manager) {}
-
-MediaService::~MediaService() {}
-
-void MediaService::AddChannel(int32_t client_id) {
- gpu::GpuChannel* gpu_channel = channel_manager_->LookupChannel(client_id);
- DCHECK(gpu_channel);
- std::unique_ptr<MediaChannel> media_channel(new MediaChannel(gpu_channel));
- gpu_channel->SetUnhandledMessageListener(media_channel.get());
- media_channels_.set(client_id, std::move(media_channel));
-}
-
-void MediaService::RemoveChannel(int32_t client_id) {
- media_channels_.erase(client_id);
-}
-
-void MediaService::DestroyAllChannels() {
- media_channels_.clear();
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698