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

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

Issue 967693002: Clang fixes for chromeos (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 RefreshReferenceFrames(); 177 RefreshReferenceFrames();
178 178
179 curr_pic_ = nullptr; 179 curr_pic_ = nullptr;
180 curr_frame_hdr_ = nullptr; 180 curr_frame_hdr_ = nullptr;
181 curr_frame_start_ = nullptr; 181 curr_frame_start_ = nullptr;
182 frame_size_ = 0; 182 frame_size_ = 0;
183 return true; 183 return true;
184 } 184 }
185 185
186 gfx::Size VP8Decoder::GetPicSize() const {
187 return pic_size_;
188 }
189
186 size_t VP8Decoder::GetRequiredNumOfPictures() const { 190 size_t VP8Decoder::GetRequiredNumOfPictures() const {
187 const size_t kVP8NumFramesActive = 4; 191 const size_t kVP8NumFramesActive = 4;
188 const size_t kPicsInPipeline = media::limits::kMaxVideoFrames + 2; 192 const size_t kPicsInPipeline = media::limits::kMaxVideoFrames + 2;
189 return kVP8NumFramesActive + kPicsInPipeline; 193 return kVP8NumFramesActive + kPicsInPipeline;
190 } 194 }
191 195
192 } // namespace content 196 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698