| 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/buffer_format_util.h" | 7 #include "ui/gfx/buffer_format_util.h" |
| 8 #include "ui/gfx/gpu_memory_buffer.h" | 8 #include "ui/gfx/gpu_memory_buffer.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 return reinterpret_cast<ClientBuffer>(this); | 65 return reinterpret_cast<ClientBuffer>(this); |
| 66 } | 66 } |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 static const size_t kMaxPlanes = 3; | 69 static const size_t kMaxPlanes = 3; |
| 70 | 70 |
| 71 bool mapped_; | 71 bool mapped_; |
| 72 gfx::BufferFormat format_; | 72 gfx::BufferFormat format_; |
| 73 const gfx::Size size_; | 73 const gfx::Size size_; |
| 74 size_t num_planes_; | 74 size_t num_planes_; |
| 75 std::vector<uint8> bytes_[kMaxPlanes]; | 75 std::vector<uint8_t> bytes_[kMaxPlanes]; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // unnamed namespace | 78 } // unnamed namespace |
| 79 | 79 |
| 80 MockGpuVideoAcceleratorFactories::MockGpuVideoAcceleratorFactories( | 80 MockGpuVideoAcceleratorFactories::MockGpuVideoAcceleratorFactories( |
| 81 gpu::gles2::GLES2Interface* gles2) | 81 gpu::gles2::GLES2Interface* gles2) |
| 82 : gles2_(gles2) {} | 82 : gles2_(gles2) {} |
| 83 | 83 |
| 84 MockGpuVideoAcceleratorFactories::~MockGpuVideoAcceleratorFactories() {} | 84 MockGpuVideoAcceleratorFactories::~MockGpuVideoAcceleratorFactories() {} |
| 85 | 85 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 }; | 137 }; |
| 138 } // namespace | 138 } // namespace |
| 139 | 139 |
| 140 scoped_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> | 140 scoped_ptr<GpuVideoAcceleratorFactories::ScopedGLContextLock> |
| 141 MockGpuVideoAcceleratorFactories::GetGLContextLock() { | 141 MockGpuVideoAcceleratorFactories::GetGLContextLock() { |
| 142 DCHECK(gles2_); | 142 DCHECK(gles2_); |
| 143 return make_scoped_ptr(new ScopedGLContextLockImpl(this)); | 143 return make_scoped_ptr(new ScopedGLContextLockImpl(this)); |
| 144 } | 144 } |
| 145 | 145 |
| 146 } // namespace media | 146 } // namespace media |
| OLD | NEW |