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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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 "content/common/gpu/media/vp9_decoder.h"
6
7 #include <memory>
8
5 #include "base/logging.h" 9 #include "base/logging.h"
6 #include "content/common/gpu/media/vp9_decoder.h"
7 #include "media/base/limits.h" 10 #include "media/base/limits.h"
8 11
9 namespace content { 12 namespace content {
10 13
11 VP9Decoder::VP9Accelerator::VP9Accelerator() {} 14 VP9Decoder::VP9Accelerator::VP9Accelerator() {}
12 15
13 VP9Decoder::VP9Accelerator::~VP9Accelerator() {} 16 VP9Decoder::VP9Accelerator::~VP9Accelerator() {}
14 17
15 VP9Decoder::VP9Decoder(VP9Accelerator* accelerator) 18 VP9Decoder::VP9Decoder(VP9Accelerator* accelerator)
16 : state_(kNeedStreamMetadata), accelerator_(accelerator) { 19 : state_(kNeedStreamMetadata), accelerator_(accelerator) {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 return pic_size_; 173 return pic_size_;
171 } 174 }
172 175
173 size_t VP9Decoder::GetRequiredNumOfPictures() const { 176 size_t VP9Decoder::GetRequiredNumOfPictures() const {
174 // kMaxVideoFrames to keep higher level media pipeline populated, +2 for the 177 // kMaxVideoFrames to keep higher level media pipeline populated, +2 for the
175 // pictures being parsed and decoded currently. 178 // pictures being parsed and decoded currently.
176 return media::limits::kMaxVideoFrames + media::kVp9NumRefFrames + 2; 179 return media::limits::kMaxVideoFrames + media::kVp9NumRefFrames + 2;
177 } 180 }
178 181
179 } // namespace content 182 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698