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