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

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: Feedback 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
« no previous file with comments | « content/common/gpu/media/vp8_decoder.h ('k') | media/audio/cras/audio_manager_cras.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 RefreshReferenceFrames(); 178 RefreshReferenceFrames();
179 179
180 curr_pic_ = nullptr; 180 curr_pic_ = nullptr;
181 curr_frame_hdr_ = nullptr; 181 curr_frame_hdr_ = nullptr;
182 curr_frame_start_ = nullptr; 182 curr_frame_start_ = nullptr;
183 frame_size_ = 0; 183 frame_size_ = 0;
184 return true; 184 return true;
185 } 185 }
186 186
187 gfx::Size VP8Decoder::GetPicSize() const {
188 return pic_size_;
189 }
190
187 size_t VP8Decoder::GetRequiredNumOfPictures() const { 191 size_t VP8Decoder::GetRequiredNumOfPictures() const {
188 const size_t kVP8NumFramesActive = 4; 192 const size_t kVP8NumFramesActive = 4;
189 const size_t kPicsInPipeline = media::limits::kMaxVideoFrames + 2; 193 const size_t kPicsInPipeline = media::limits::kMaxVideoFrames + 2;
190 return kVP8NumFramesActive + kPicsInPipeline; 194 return kVP8NumFramesActive + kPicsInPipeline;
191 } 195 }
192 196
193 } // namespace content 197 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/vp8_decoder.h ('k') | media/audio/cras/audio_manager_cras.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698