| 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "content/common/gpu/media/vp9_decoder.h" | |
| 7 #include "media/base/limits.h" | 6 #include "media/base/limits.h" |
| 7 #include "media/gpu/vp9_decoder.h" |
| 8 | 8 |
| 9 namespace content { | 9 namespace media { |
| 10 | 10 |
| 11 VP9Decoder::VP9Accelerator::VP9Accelerator() {} | 11 VP9Decoder::VP9Accelerator::VP9Accelerator() {} |
| 12 | 12 |
| 13 VP9Decoder::VP9Accelerator::~VP9Accelerator() {} | 13 VP9Decoder::VP9Accelerator::~VP9Accelerator() {} |
| 14 | 14 |
| 15 VP9Decoder::VP9Decoder(VP9Accelerator* accelerator) | 15 VP9Decoder::VP9Decoder(VP9Accelerator* accelerator) |
| 16 : state_(kNeedStreamMetadata), accelerator_(accelerator) { | 16 : state_(kNeedStreamMetadata), accelerator_(accelerator) { |
| 17 DCHECK(accelerator_); | 17 DCHECK(accelerator_); |
| 18 ref_frames_.resize(media::kVp9NumRefFrames); | 18 ref_frames_.resize(media::kVp9NumRefFrames); |
| 19 } | 19 } |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 gfx::Size VP9Decoder::GetPicSize() const { | 169 gfx::Size VP9Decoder::GetPicSize() const { |
| 170 return pic_size_; | 170 return pic_size_; |
| 171 } | 171 } |
| 172 | 172 |
| 173 size_t VP9Decoder::GetRequiredNumOfPictures() const { | 173 size_t VP9Decoder::GetRequiredNumOfPictures() const { |
| 174 // kMaxVideoFrames to keep higher level media pipeline populated, +2 for the | 174 // kMaxVideoFrames to keep higher level media pipeline populated, +2 for the |
| 175 // pictures being parsed and decoded currently. | 175 // pictures being parsed and decoded currently. |
| 176 return media::limits::kMaxVideoFrames + media::kVp9NumRefFrames + 2; | 176 return media::limits::kMaxVideoFrames + media::kVp9NumRefFrames + 2; |
| 177 } | 177 } |
| 178 | 178 |
| 179 } // namespace content | 179 } // namespace media |
| OLD | NEW |