OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/common/gpu/media/vp8_decoder.h" | 5 #include "content/common/gpu/media/vp8_decoder.h" |
6 #include "media/base/limits.h" | 6 #include "media/base/limits.h" |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
10 VP8Decoder::VP8Accelerator::VP8Accelerator() { | 10 VP8Decoder::VP8Accelerator::VP8Accelerator() { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 RefreshReferenceFrames(); | 178 RefreshReferenceFrames(); |
179 | 179 |
180 curr_pic_ = nullptr; | 180 curr_pic_ = nullptr; |
181 curr_frame_hdr_ = nullptr; | 181 curr_frame_hdr_ = nullptr; |
182 curr_frame_start_ = nullptr; | 182 curr_frame_start_ = nullptr; |
183 frame_size_ = 0; | 183 frame_size_ = 0; |
184 return true; | 184 return true; |
185 } | 185 } |
186 | 186 |
| 187 gfx::Size VP8Decoder::GetPicSize() const { |
| 188 return pic_size_; |
| 189 } |
| 190 |
187 size_t VP8Decoder::GetRequiredNumOfPictures() const { | 191 size_t VP8Decoder::GetRequiredNumOfPictures() const { |
188 const size_t kVP8NumFramesActive = 4; | 192 const size_t kVP8NumFramesActive = 4; |
189 const size_t kPicsInPipeline = media::limits::kMaxVideoFrames + 2; | 193 const size_t kPicsInPipeline = media::limits::kMaxVideoFrames + 2; |
190 return kVP8NumFramesActive + kPicsInPipeline; | 194 return kVP8NumFramesActive + kPicsInPipeline; |
191 } | 195 } |
192 | 196 |
193 } // namespace content | 197 } // namespace content |
OLD | NEW |