| OLD | NEW |
| 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" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 const gfx::Size& size, | 32 const gfx::Size& size, |
| 33 std::vector<uint32>* texture_ids, | 33 std::vector<uint32>* texture_ids, |
| 34 std::vector<gpu::Mailbox>* texture_mailboxes, | 34 std::vector<gpu::Mailbox>* texture_mailboxes, |
| 35 uint32 texture_target) OVERRIDE; | 35 uint32 texture_target) OVERRIDE; |
| 36 | 36 |
| 37 virtual void DeleteTexture(uint32 texture_id) OVERRIDE {} | 37 virtual void DeleteTexture(uint32 texture_id) OVERRIDE {} |
| 38 | 38 |
| 39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE {} | 39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE {} |
| 40 | 40 |
| 41 virtual void ReadPixels(uint32 texture_id, | 41 virtual void ReadPixels(uint32 texture_id, |
| 42 const gfx::Rect& visible_rect, | 42 const gfx::Size& size, |
| 43 const SkBitmap& pixels) OVERRIDE {}; | 43 const SkBitmap& pixels) OVERRIDE {}; |
| 44 | 44 |
| 45 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator( | 45 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator( |
| 46 VideoCodecProfile profile, | 46 VideoCodecProfile profile, |
| 47 VideoDecodeAccelerator::Client* client) OVERRIDE; | 47 VideoDecodeAccelerator::Client* client) OVERRIDE; |
| 48 | 48 |
| 49 virtual void Abort() OVERRIDE {} |
| 50 |
| 51 virtual bool IsAborted() OVERRIDE; |
| 52 |
| 49 private: | 53 private: |
| 50 friend class base::RefCountedThreadSafe<FakeGpuVideoAcceleratorFactories>; | 54 friend class base::RefCountedThreadSafe<FakeGpuVideoAcceleratorFactories>; |
| 51 virtual ~FakeGpuVideoAcceleratorFactories(); | 55 virtual ~FakeGpuVideoAcceleratorFactories(); |
| 52 | 56 |
| 53 const scoped_refptr<base::TaskRunner> fake_task_runner_; | 57 const scoped_refptr<base::TaskRunner> fake_task_runner_; |
| 54 | 58 |
| 55 DISALLOW_COPY_AND_ASSIGN(FakeGpuVideoAcceleratorFactories); | 59 DISALLOW_COPY_AND_ASSIGN(FakeGpuVideoAcceleratorFactories); |
| 56 }; | 60 }; |
| 57 | 61 |
| 58 } // namespace test | 62 } // namespace test |
| 59 } // namespace cast | 63 } // namespace cast |
| 60 } // namespace media | 64 } // namespace media |
| 61 | 65 |
| 62 #endif // MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ | 66 #endif // MEDIA_CAST_TEST_FAKE_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ |
| OLD | NEW |