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

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

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/fake_video_decode_accelerator.h
diff --git a/content/common/gpu/media/fake_video_decode_accelerator.h b/content/common/gpu/media/fake_video_decode_accelerator.h
deleted file mode 100644
index 10d47822b45faac4a0d1bcc3c5041138751903cc..0000000000000000000000000000000000000000
--- a/content/common/gpu/media/fake_video_decode_accelerator.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright 2014 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_FAKE_VIDEO_DECODE_ACCELERATOR_H_
-#define CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_
-
-#include <stdint.h>
-
-#include <queue>
-#include <vector>
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "content/common/content_export.h"
-#include "content/common/gpu/media/gpu_video_decode_accelerator_helpers.h"
-#include "media/video/video_decode_accelerator.h"
-#include "ui/gfx/geometry/size_f.h"
-#include "ui/gl/gl_context.h"
-
-namespace content {
-
-class CONTENT_EXPORT FakeVideoDecodeAccelerator
- : public media::VideoDecodeAccelerator {
- public:
- FakeVideoDecodeAccelerator(
- const gfx::Size& size,
- const MakeGLContextCurrentCallback& make_context_current_cb);
- ~FakeVideoDecodeAccelerator() override;
-
- bool Initialize(const Config& config, Client* client) override;
- void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
- void AssignPictureBuffers(
- const std::vector<media::PictureBuffer>& buffers) override;
- void ReusePictureBuffer(int32_t picture_buffer_id) override;
- void Flush() override;
- void Reset() override;
- void Destroy() override;
- bool TryToSetupDecodeOnSeparateThread(
- const base::WeakPtr<Client>& decode_client,
- const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner)
- override;
-
- private:
- void DoPictureReady();
-
- // The message loop that created the class. Used for all callbacks. This
- // class expects all calls to this class to be on this message loop (not
- // checked).
- const scoped_refptr<base::SingleThreadTaskRunner> child_task_runner_;
-
- Client* client_;
-
- // Make our context current before running any GL entry points.
- MakeGLContextCurrentCallback make_context_current_cb_;
-
- // Output picture size.
- gfx::Size frame_buffer_size_;
-
- // Picture buffer ids that are available for putting fake frames in.
- std::queue<int> free_output_buffers_;
- // BitstreamBuffer ids for buffers that contain new data to decode.
- std::queue<int> queued_bitstream_ids_;
-
- bool flushing_;
-
- // The WeakPtrFactory for |weak_this_|.
- base::WeakPtrFactory<FakeVideoDecodeAccelerator> weak_this_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(FakeVideoDecodeAccelerator);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_GPU_MEDIA_FAKE_VIDEO_DECODE_ACCELERATOR_H_

Powered by Google App Engine
This is Rietveld 408576698