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

Unified Diff: content/common/gpu/media/gpu_arc_video_service.h

Issue 1634443002: Revert "Implement GpuArcVideoService for arc video accelerator" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « content/common/gpu/gpu_process_launch_causes.h ('k') | content/common/gpu/media/gpu_arc_video_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/gpu_arc_video_service.h
diff --git a/content/common/gpu/media/gpu_arc_video_service.h b/content/common/gpu/media/gpu_arc_video_service.h
deleted file mode 100644
index 131150c9f94e82991ae2129137f6fd8c561b369c..0000000000000000000000000000000000000000
--- a/content/common/gpu/media/gpu_arc_video_service.h
+++ /dev/null
@@ -1,68 +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.
-
-#ifndef CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_
-#define CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_
-
-#include <map>
-
-#include "base/callback.h"
-#include "base/threading/thread_checker.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-class WaitableEvent;
-}
-
-namespace IPC {
-struct ChannelHandle;
-}
-
-namespace content {
-
-// GpuArcVideoService manages life-cycle and IPC message translation for
-// ArcVideoAccelerator.
-//
-// For each creation request from GpuChannelManager, GpuArcVideoService will
-// create a new IPC channel.
-class GpuArcVideoService {
- public:
- class AcceleratorStub;
- using CreateChannelCallback = base::Callback<void(const IPC::ChannelHandle&)>;
-
- // |shutdown_event| should signal an event when this process is about to be
- // shut down in order to notify our new IPC channel to terminate.
- GpuArcVideoService(
- base::WaitableEvent* shutdown_event,
- const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
-
- // Upon deletion, all ArcVideoAccelerator will be deleted and the associated
- // IPC channels are closed.
- ~GpuArcVideoService();
-
- // Creates a new accelerator stub. The creation result will be sent back via
- // |callback|.
- void CreateChannel(const CreateChannelCallback& callback);
-
- // Removes the reference of |stub| (and trigger deletion) from this class.
- void RemoveClient(AcceleratorStub* stub);
-
- private:
- base::ThreadChecker thread_checker_;
-
- // Shutdown event of GPU process.
- base::WaitableEvent* shutdown_event_;
-
- // GPU io thread task runner.
- scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
-
- // Bookkeeping all accelerator stubs.
- std::map<AcceleratorStub*, scoped_ptr<AcceleratorStub>> accelerator_stubs_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_GPU_MEDIA_GPU_ARC_VIDEO_SERVICE_H_
« no previous file with comments | « content/common/gpu/gpu_process_launch_causes.h ('k') | content/common/gpu/media/gpu_arc_video_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698