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

Side by Side Diff: media/filters/vpx_video_decoder.cc

Issue 2234753002: media: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
« no previous file with comments | « media/filters/media_source_state.cc ('k') | media/formats/mp2t/mp2t_stream_parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/filters/vpx_video_decoder.h" 5 #include "media/filters/vpx_video_decoder.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 DISALLOW_COPY_AND_ASSIGN(MemoryPool); 228 DISALLOW_COPY_AND_ASSIGN(MemoryPool);
229 }; 229 };
230 230
231 VpxVideoDecoder::MemoryPool::MemoryPool() { 231 VpxVideoDecoder::MemoryPool::MemoryPool() {
232 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 232 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
233 this, "VpxVideoDecoder", base::ThreadTaskRunnerHandle::Get()); 233 this, "VpxVideoDecoder", base::ThreadTaskRunnerHandle::Get());
234 } 234 }
235 235
236 VpxVideoDecoder::MemoryPool::~MemoryPool() { 236 VpxVideoDecoder::MemoryPool::~MemoryPool() {
237 STLDeleteElements(&frame_buffers_); 237 base::STLDeleteElements(&frame_buffers_);
238 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider( 238 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
239 this); 239 this);
240 } 240 }
241 241
242 VpxVideoDecoder::MemoryPool::VP9FrameBuffer* 242 VpxVideoDecoder::MemoryPool::VP9FrameBuffer*
243 VpxVideoDecoder::MemoryPool::GetFreeFrameBuffer(size_t min_size) { 243 VpxVideoDecoder::MemoryPool::GetFreeFrameBuffer(size_t min_size) {
244 // Check if a free frame buffer exists. 244 // Check if a free frame buffer exists.
245 size_t i = 0; 245 size_t i = 0;
246 for (; i < frame_buffers_.size(); ++i) { 246 for (; i < frame_buffers_.size(); ++i) {
247 if (frame_buffers_[i]->ref_cnt == 0) 247 if (frame_buffers_[i]->ref_cnt == 0)
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 (*video_frame)->visible_data(VideoFrame::kUPlane), 731 (*video_frame)->visible_data(VideoFrame::kUPlane),
732 (*video_frame)->stride(VideoFrame::kUPlane), 732 (*video_frame)->stride(VideoFrame::kUPlane),
733 (*video_frame)->visible_data(VideoFrame::kVPlane), 733 (*video_frame)->visible_data(VideoFrame::kVPlane),
734 (*video_frame)->stride(VideoFrame::kVPlane), coded_size.width(), 734 (*video_frame)->stride(VideoFrame::kVPlane), coded_size.width(),
735 coded_size.height()); 735 coded_size.height());
736 736
737 return true; 737 return true;
738 } 738 }
739 739
740 } // namespace media 740 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/media_source_state.cc ('k') | media/formats/mp2t/mp2t_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698