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

Side by Side Diff: webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 * 9 *
10 */ 10 */
11 11
12 #include "webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.h" 12 #include "webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.h"
13 13
14 #include "vpx/vpx_codec.h" 14 #include "vpx/vpx_codec.h"
15 #include "vpx/vpx_decoder.h" 15 #include "vpx/vpx_decoder.h"
16 #include "vpx/vpx_frame_buffer.h" 16 #include "vpx/vpx_frame_buffer.h"
17 17
18 #include "webrtc/rtc_base/checks.h" 18 #include "webrtc/base/checks.h"
19 #include "webrtc/rtc_base/logging.h" 19 #include "webrtc/base/logging.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 uint8_t* Vp9FrameBufferPool::Vp9FrameBuffer::GetData() { 23 uint8_t* Vp9FrameBufferPool::Vp9FrameBuffer::GetData() {
24 return data_.data<uint8_t>(); 24 return data_.data<uint8_t>();
25 } 25 }
26 26
27 size_t Vp9FrameBufferPool::Vp9FrameBuffer::GetDataSize() const { 27 size_t Vp9FrameBufferPool::Vp9FrameBuffer::GetDataSize() const {
28 return data_.size(); 28 return data_.size();
29 } 29 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 buffer->Release(); 130 buffer->Release();
131 // When libvpx fails to decode and you continue to try to decode (and fail) 131 // When libvpx fails to decode and you continue to try to decode (and fail)
132 // libvpx can for some reason try to release the same buffer multiple times. 132 // libvpx can for some reason try to release the same buffer multiple times.
133 // Setting |priv| to null protects against trying to Release multiple times. 133 // Setting |priv| to null protects against trying to Release multiple times.
134 fb->priv = nullptr; 134 fb->priv = nullptr;
135 } 135 }
136 return 0; 136 return 0;
137 } 137 }
138 138
139 } // namespace webrtc 139 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/video_coding/codecs/vp9/vp9_frame_buffer_pool.h ('k') | webrtc/modules/video_coding/codecs/vp9/vp9_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698