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

Side by Side Diff: media/cast/test/fake_gpu_video_accelerator_factories.h

Issue 116623002: Cast: Adding support for GPU accelerated encode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge nits Created 6 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 unified diff | Download patch
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/test/fake_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7
8 #include "media/filters/gpu_video_accelerator_factories.h"
9
10 #include "base/message_loop/message_loop.h"
11 #include "media/cast/test/fake_task_runner.h"
12
13 namespace media {
14 namespace cast {
15 namespace test {
16
17 class FakeGpuVideoAcceleratorFactories : public GpuVideoAcceleratorFactories {
18 public:
19 explicit FakeGpuVideoAcceleratorFactories(
20 const scoped_refptr<base::TaskRunner>& fake_task_runner);
21
22 virtual scoped_ptr<VideoEncodeAccelerator> CreateVideoEncodeAccelerator(
23 VideoEncodeAccelerator::Client* client) OVERRIDE;
24
25 virtual base::SharedMemory* CreateSharedMemory(size_t size) OVERRIDE;
26
27 virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE;
28 //
29 // The following functions are no-op.
30 //
31 virtual uint32 CreateTextures(int32 count,
32 const gfx::Size& size,
33 std::vector<uint32>* texture_ids,
34 std::vector<gpu::Mailbox>* texture_mailboxes,
35 uint32 texture_target) OVERRIDE;
36
37 virtual void DeleteTexture(uint32 texture_id) OVERRIDE {}
38
39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE {}
40
41 virtual void ReadPixels(uint32 texture_id,
42 const gfx::Size& size,
43 const SkBitmap& pixels) OVERRIDE {};
44
45 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator(
46 VideoCodecProfile profile,
47 VideoDecodeAccelerator::Client* client) OVERRIDE;
48
49 virtual void Abort() OVERRIDE {}
50
51 virtual bool IsAborted() OVERRIDE;
52
53 private:
54 friend class base::RefCountedThreadSafe<FakeGpuVideoAcceleratorFactories>;
55 virtual ~FakeGpuVideoAcceleratorFactories();
56
57 const scoped_refptr<base::TaskRunner> fake_task_runner_;
58
59 DISALLOW_COPY_AND_ASSIGN(FakeGpuVideoAcceleratorFactories);
60 };
61
62 } // namespace test
63 } // namespace cast
64 } // namespace media
65
66 #endif // MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW
« no previous file with comments | « media/cast/cast_sender_impl.cc ('k') | media/cast/test/fake_gpu_video_accelerator_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698