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

Unified Diff: media/filters/mock_gpu_video_decoder_factories.h

Issue 13890012: Integrate VDA with WebRTC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review comments and fix a crash after hang up Created 7 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
Index: media/filters/mock_gpu_video_decoder_factories.h
diff --git a/media/filters/mock_gpu_video_decoder_factories.h b/media/filters/mock_gpu_video_decoder_factories.h
new file mode 100644
index 0000000000000000000000000000000000000000..de5c4933c45b293cb3ac00b3375910ff194861c2
--- /dev/null
+++ b/media/filters/mock_gpu_video_decoder_factories.h
@@ -0,0 +1,51 @@
+// Copyright (c) 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_MOCK_GPU_VIDEO_DECODER_FACTORIES_H_
+#define MEDIA_FILTERS_MOCK_GPU_VIDEO_DECODER_FACTORIES_H_
+
+#include "media/video/video_decode_accelerator.h"
+
+#include "third_party/skia/include/core/SkBitmap.h"
+
+template <class T>
+class scoped_refptr;
+
+namespace base {
+class MessageLoopProxy;
+class SharedMemory;
+}
+
+namespace media {
+
+class MockGpuVideoDecoderFactories : public GpuVideoDecoder::Factories {
+ public:
+ MockGpuVideoDecoderFactories() {}
+ virtual ~MockGpuVideoDecoderFactories() {}
+ MOCK_METHOD2(CreateVideoDecodeAccelerator,
+ VideoDecodeAccelerator*(VideoCodecProfile,
+ VideoDecodeAccelerator::Client*));
+ MOCK_METHOD4(CreateTextures,
+ bool(int32 count,
+ const gfx::Size& size,
+ std::vector<uint32>* texture_ids,
+ uint32 texture_target));
+ MOCK_METHOD1(DeleteTexture, void(uint32 texture_id));
+ MOCK_METHOD4(ReadPixels,
+ void(uint32 texture_id,
+ uint32 texture_target,
+ const gfx::Size& size,
+ const SkBitmap& pixels));
+ MOCK_METHOD1(CreateSharedMemory, base::SharedMemory*(size_t size));
+ MOCK_METHOD0(GetMessageLoop, scoped_refptr<base::MessageLoopProxy>());
+ MOCK_METHOD0(Abort, void());
+ MOCK_METHOD0(IsAborted, bool());
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockGpuVideoDecoderFactories);
+};
+
+} // namespace media
+
+#endif // MEDIA_FILTERS_MOCK_GPU_VIDEO_DECODER_FACTORIES_H_

Powered by Google App Engine
This is Rietveld 408576698