| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 #include "media/renderers/mock_gpu_video_accelerator_factories.h" | 5 #include "media/renderers/mock_gpu_video_accelerator_factories.h" |
| 6 | 6 |
| 7 #include "ui/gfx/gpu_memory_buffer.h" | 7 #include "ui/gfx/gpu_memory_buffer.h" |
| 8 | 8 |
| 9 namespace media { | 9 namespace media { |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 bool IsMapped() const override { | 25 bool IsMapped() const override { |
| 26 NOTREACHED(); | 26 NOTREACHED(); |
| 27 return false; | 27 return false; |
| 28 } | 28 } |
| 29 gfx::BufferFormat GetFormat() const override { | 29 gfx::BufferFormat GetFormat() const override { |
| 30 return gfx::BufferFormat::R_8; | 30 return gfx::BufferFormat::R_8; |
| 31 } | 31 } |
| 32 void GetStride(int* stride) const override { stride[0] = size_.width(); } | 32 void GetStride(int* stride) const override { stride[0] = size_.width(); } |
| 33 gfx::GpuMemoryBufferId GetId() const override { | 33 gfx::GpuMemoryBufferId GetId() const override { |
| 34 NOTREACHED(); | 34 NOTREACHED(); |
| 35 return 0; | 35 return gfx::GpuMemoryBufferId(0); |
| 36 } | 36 } |
| 37 gfx::GpuMemoryBufferHandle GetHandle() const override { | 37 gfx::GpuMemoryBufferHandle GetHandle() const override { |
| 38 NOTREACHED(); | 38 NOTREACHED(); |
| 39 return gfx::GpuMemoryBufferHandle(); | 39 return gfx::GpuMemoryBufferHandle(); |
| 40 } | 40 } |
| 41 ClientBuffer AsClientBuffer() override { | 41 ClientBuffer AsClientBuffer() override { |
| 42 return reinterpret_cast<ClientBuffer>(this); | 42 return reinterpret_cast<ClientBuffer>(this); |
| 43 } | 43 } |
| 44 | 44 |
| 45 private: | 45 private: |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 scoped_ptr<VideoEncodeAccelerator> | 79 scoped_ptr<VideoEncodeAccelerator> |
| 80 MockGpuVideoAcceleratorFactories::CreateVideoEncodeAccelerator() { | 80 MockGpuVideoAcceleratorFactories::CreateVideoEncodeAccelerator() { |
| 81 return scoped_ptr<VideoEncodeAccelerator>(DoCreateVideoEncodeAccelerator()); | 81 return scoped_ptr<VideoEncodeAccelerator>(DoCreateVideoEncodeAccelerator()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 unsigned MockGpuVideoAcceleratorFactories::ImageTextureTarget() { | 84 unsigned MockGpuVideoAcceleratorFactories::ImageTextureTarget() { |
| 85 return GL_TEXTURE_2D; | 85 return GL_TEXTURE_2D; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace media | 88 } // namespace media |
| OLD | NEW |