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

Unified Diff: chrome/gpu/gpu_arc_video_service.h

Issue 2919193002: ArcBridge: Rename VideoAcceleratorService to VideoDecodeAccelerator. (Closed)
Patch Set: Address review comments Created 3 years, 6 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 | « chrome/gpu/gpu_arc_video_decode_accelerator.cc ('k') | chrome/gpu/gpu_arc_video_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_arc_video_service.h
diff --git a/chrome/gpu/gpu_arc_video_service.h b/chrome/gpu/gpu_arc_video_service.h
deleted file mode 100644
index 08479066e979a780942db3fc758713850a6914f5..0000000000000000000000000000000000000000
--- a/chrome/gpu/gpu_arc_video_service.h
+++ /dev/null
@@ -1,77 +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 CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_
-#define CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/files/scoped_file.h"
-#include "base/macros.h"
-#include "chrome/gpu/arc_video_accelerator.h"
-#include "components/arc/common/video_accelerator.mojom.h"
-#include "components/arc/video_accelerator/video_accelerator.h"
-#include "gpu/command_buffer/service/gpu_preferences.h"
-
-namespace chromeos {
-namespace arc {
-
-// GpuArcVideoService manages life-cycle and IPC message translation for
-// ArcVideoAccelerator.
-//
-// For each creation request from GpuArcVideoServiceHost, GpuArcVideoService
-// will create a new IPC channel.
-class GpuArcVideoService : public ::arc::mojom::VideoAcceleratorService,
- public ArcVideoAccelerator::Client {
- public:
- explicit GpuArcVideoService(const gpu::GpuPreferences& gpu_preferences);
- ~GpuArcVideoService() override;
-
- private:
- // ArcVideoAccelerator::Client implementation.
- void OnError(ArcVideoAccelerator::Result error) override;
- void OnBufferDone(PortType port,
- uint32_t index,
- const BufferMetadata& metadata) override;
- void OnFlushDone() override;
- void OnResetDone() override;
- void OnOutputFormatChanged(const VideoFormat& format) override;
-
- // ::arc::mojom::VideoAcceleratorService implementation.
- void Initialize(::arc::mojom::ArcVideoAcceleratorConfigPtr config,
- ::arc::mojom::VideoAcceleratorServiceClientPtr client,
- const InitializeCallback& callback) override;
- void BindSharedMemory(::arc::mojom::PortType port,
- uint32_t index,
- mojo::ScopedHandle ashmem_handle,
- uint32_t offset,
- uint32_t length) override;
- void BindDmabuf(::arc::mojom::PortType port,
- uint32_t index,
- mojo::ScopedHandle dmabuf_handle,
- std::vector<::arc::ArcVideoAcceleratorDmabufPlane>
- dmabuf_planes) override;
- void UseBuffer(::arc::mojom::PortType port,
- uint32_t index,
- ::arc::mojom::BufferMetadataPtr metadata) override;
- void SetNumberOfOutputBuffers(uint32_t number) override;
- void Flush() override;
- void Reset() override;
-
- base::ScopedFD UnwrapFdFromMojoHandle(mojo::ScopedHandle handle);
-
- base::ThreadChecker thread_checker_;
-
- gpu::GpuPreferences gpu_preferences_;
- std::unique_ptr<ArcVideoAccelerator> accelerator_;
- ::arc::mojom::VideoAcceleratorServiceClientPtr client_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService);
-};
-
-} // namespace arc
-} // namespace chromeos
-
-#endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_
« no previous file with comments | « chrome/gpu/gpu_arc_video_decode_accelerator.cc ('k') | chrome/gpu/gpu_arc_video_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698