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

Side by Side Diff: media/renderers/mock_gpu_video_accelerator_factories.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698