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

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

Issue 185403020: Make VEA client of command buffer; move sync. IPC to VDA/VEA::Initialize() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 85629196 fischman@ comments. Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include "media/filters/gpu_video_accelerator_factories.h" 8 #include "media/filters/gpu_video_accelerator_factories.h"
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "media/cast/test/fake_single_thread_task_runner.h"
12 11
13 namespace media { 12 namespace media {
14 namespace cast { 13 namespace cast {
15 namespace test { 14 namespace test {
16 15
17 class FakeGpuVideoAcceleratorFactories : public GpuVideoAcceleratorFactories { 16 class FakeGpuVideoAcceleratorFactories : public GpuVideoAcceleratorFactories {
18 public: 17 public:
19 explicit FakeGpuVideoAcceleratorFactories( 18 explicit FakeGpuVideoAcceleratorFactories(
20 const scoped_refptr<base::SingleThreadTaskRunner>& fake_task_runner); 19 const scoped_refptr<base::SingleThreadTaskRunner>& fake_task_runner);
21 20
(...skipping 14 matching lines...) Expand all
36 uint32 texture_target) OVERRIDE; 35 uint32 texture_target) OVERRIDE;
37 36
38 virtual void DeleteTexture(uint32 texture_id) OVERRIDE {} 37 virtual void DeleteTexture(uint32 texture_id) OVERRIDE {}
39 38
40 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE {} 39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE {}
41 40
42 virtual void ReadPixels(uint32 texture_id, 41 virtual void ReadPixels(uint32 texture_id,
43 const gfx::Rect& visible_rect, 42 const gfx::Rect& visible_rect,
44 const SkBitmap& pixels) OVERRIDE {}; 43 const SkBitmap& pixels) OVERRIDE {};
45 44
46 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator( 45 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator()
47 VideoCodecProfile profile) OVERRIDE; 46 OVERRIDE;
48 47
49 private: 48 private:
50 friend class base::RefCountedThreadSafe<FakeGpuVideoAcceleratorFactories>; 49 friend class base::RefCountedThreadSafe<FakeGpuVideoAcceleratorFactories>;
51 virtual ~FakeGpuVideoAcceleratorFactories(); 50 virtual ~FakeGpuVideoAcceleratorFactories();
52 51
53 const scoped_refptr<base::SingleThreadTaskRunner> fake_task_runner_; 52 const scoped_refptr<base::SingleThreadTaskRunner> fake_task_runner_;
54 53
55 DISALLOW_COPY_AND_ASSIGN(FakeGpuVideoAcceleratorFactories); 54 DISALLOW_COPY_AND_ASSIGN(FakeGpuVideoAcceleratorFactories);
56 }; 55 };
57 56
58 } // namespace test 57 } // namespace test
59 } // namespace cast 58 } // namespace cast
60 } // namespace media 59 } // namespace media
61 60
62 #endif // MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 61 #endif // MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698