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

Unified Diff: media/filters/gpu_video_accelerator_factories.h

Issue 970023002: Moved gpu factories to media/renderers/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed mojo webmediaplayer_factory.cc Created 5 years, 10 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 | « media/BUILD.gn ('k') | media/filters/gpu_video_accelerator_factories.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/gpu_video_accelerator_factories.h
diff --git a/media/filters/gpu_video_accelerator_factories.h b/media/filters/gpu_video_accelerator_factories.h
deleted file mode 100644
index 03494d04790cd560c8ad237ed25eb1b4c9295d5f..0000000000000000000000000000000000000000
--- a/media/filters/gpu_video_accelerator_factories.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2013 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 MEDIA_FILTERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
-#define MEDIA_FILTERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
-
-#include <vector>
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "gpu/command_buffer/common/mailbox.h"
-#include "media/base/media_export.h"
-#include "media/video/video_encode_accelerator.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-class SharedMemory;
-}
-
-namespace gfx {
-class Rect;
-class Size;
-}
-
-namespace media {
-
-class VideoDecodeAccelerator;
-
-// Helper interface for specifying factories needed to instantiate a hardware
-// video accelerator.
-// Threading model:
-// * The GpuVideoAcceleratorFactories may be constructed on any thread.
-// * The GpuVideoAcceleratorFactories has an associated message loop, which may
-// be retrieved as |GetMessageLoop()|.
-// * All calls to the Factories after construction must be made on its message
-// loop.
-class MEDIA_EXPORT GpuVideoAcceleratorFactories
- : public base::RefCountedThreadSafe<GpuVideoAcceleratorFactories> {
- public:
- // Caller owns returned pointer, but should call Destroy() on it (instead of
- // directly deleting) for proper destruction, as per the
- // VideoDecodeAccelerator interface.
- virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator() = 0;
-
- // Caller owns returned pointer, but should call Destroy() on it (instead of
- // directly deleting) for proper destruction, as per the
- // VideoEncodeAccelerator interface.
- virtual scoped_ptr<VideoEncodeAccelerator> CreateVideoEncodeAccelerator() = 0;
-
- // Allocate & delete native textures.
- virtual bool CreateTextures(int32 count,
- const gfx::Size& size,
- std::vector<uint32>* texture_ids,
- std::vector<gpu::Mailbox>* texture_mailboxes,
- uint32 texture_target) = 0;
- virtual void DeleteTexture(uint32 texture_id) = 0;
-
- virtual void WaitSyncPoint(uint32 sync_point) = 0;
-
- // Allocate & return a shared memory segment.
- virtual scoped_ptr<base::SharedMemory> CreateSharedMemory(size_t size) = 0;
-
- // Returns the task runner the video accelerator runs on.
- virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() = 0;
-
- // Returns the supported codec profiles of video encode accelerator.
- virtual std::vector<VideoEncodeAccelerator::SupportedProfile>
- GetVideoEncodeAcceleratorSupportedProfiles() = 0;
-
- protected:
- friend class base::RefCountedThreadSafe<GpuVideoAcceleratorFactories>;
- virtual ~GpuVideoAcceleratorFactories();
-};
-
-} // namespace media
-
-#endif // MEDIA_FILTERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
« no previous file with comments | « media/BUILD.gn ('k') | media/filters/gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698