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

Side by Side Diff: media/gpu/vp9_decoder.cc

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix several more bot-identified build issues Created 4 years, 8 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 // 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698